Skip to content

Commit 110c79b

Browse files
committed
[issue-225][bin] modify taier.sh、base.sh
1 parent 3023502 commit 110c79b

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

bin/taier.sh

+1-19
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ start() {
5050
" 1> "${LS_LOG_DIR}/$name.stdout" 2> "${LS_LOG_DIR}/$name.err" &
5151

5252
echo $! > $pidfile
53-
ret=$?
54-
[ $ret -eq 0 ] && success || failure; echo
5553
return 0
5654
}
5755

@@ -81,8 +79,6 @@ stop() {
8179
echo -n "$name stopped "
8280
fi
8381
fi
84-
ret=$?
85-
[ $ret -eq 0 ] && success || failure; echo
8682
}
8783

8884
status() {
@@ -103,23 +99,12 @@ status() {
10399
fi
104100
}
105101

106-
reload() {
107-
echo -n "Reload $name "
108-
if status ; then
109-
kill -HUP `cat "$pidfile"`
110-
fi
111-
ret=$?
112-
[ $ret -eq 0 ] && success || failure; echo
113-
}
114-
115102
force_stop() {
116103
echo -n "Force stop $name "
117104
if status ; then
118105
stop
119106
status && kill -KILL `cat "$pidfile"`
120107
fi
121-
ret=$?
122-
[ $ret -eq 0 ] && success || failure; echo
123108
}
124109

125110
configtest() {
@@ -138,8 +123,6 @@ configtest() {
138123
[ $? -eq 0 ] && return 0
139124
# Program not configured
140125
return 6
141-
ret=$?
142-
[ $ret -eq 0 ] && success || failure; echo
143126
}
144127

145128
case "$1" in
@@ -166,7 +149,6 @@ case "$1" in
166149
fi
167150
exit $code
168151
;;
169-
reload) reload ;;
170152
restart)
171153

172154
quiet configtest
@@ -182,7 +164,7 @@ case "$1" in
182164
exit $?
183165
;;
184166
*)
185-
echo "Usage: $SCRIPTNAME {start|stop|force-stop|status|reload|restart|configtest}" >&2
167+
echo "Usage: $SCRIPTNAME {start|stop|force-stop|status|restart|configtest}" >&2
186168
exit 3
187169
;;
188170
esac

0 commit comments

Comments
 (0)