File tree 1 file changed +1
-19
lines changed
1 file changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,6 @@ start() {
50
50
" 1> " ${LS_LOG_DIR} /$name .stdout" 2> " ${LS_LOG_DIR} /$name .err" &
51
51
52
52
echo $! > $pidfile
53
- ret=$?
54
- [ $ret -eq 0 ] && success || failure; echo
55
53
return 0
56
54
}
57
55
@@ -81,8 +79,6 @@ stop() {
81
79
echo -n " $name stopped "
82
80
fi
83
81
fi
84
- ret=$?
85
- [ $ret -eq 0 ] && success || failure; echo
86
82
}
87
83
88
84
status () {
@@ -103,23 +99,12 @@ status() {
103
99
fi
104
100
}
105
101
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
-
115
102
force_stop () {
116
103
echo -n " Force stop $name "
117
104
if status ; then
118
105
stop
119
106
status && kill -KILL ` cat " $pidfile " `
120
107
fi
121
- ret=$?
122
- [ $ret -eq 0 ] && success || failure; echo
123
108
}
124
109
125
110
configtest () {
@@ -138,8 +123,6 @@ configtest() {
138
123
[ $? -eq 0 ] && return 0
139
124
# Program not configured
140
125
return 6
141
- ret=$?
142
- [ $ret -eq 0 ] && success || failure; echo
143
126
}
144
127
145
128
case " $1 " in
@@ -166,7 +149,6 @@ case "$1" in
166
149
fi
167
150
exit $code
168
151
;;
169
- reload) reload ;;
170
152
restart)
171
153
172
154
quiet configtest
@@ -182,7 +164,7 @@ case "$1" in
182
164
exit $?
183
165
;;
184
166
* )
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
186
168
exit 3
187
169
;;
188
170
esac
You can’t perform that action at this time.
0 commit comments