We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 585a2fb commit abeb228Copy full SHA for abeb228
bashrc/beaver_control
@@ -57,6 +57,7 @@ Optional arguments:
57
58
Require:
59
action {start|stop|status|restart|condrestart|try-restart|reload|force-reload}
60
+
61
USAGE
62
63
exit 1
@@ -163,14 +164,14 @@ stop() {
163
164
165
pstatus () {
166
if pgrep -f "${PYTHON} ${EXEC}" >/dev/null; then
- echo "$PROG" running
167
+ #echo "$PROG" running
168
return 0
169
fi
170
return 1
171
}
172
173
forcestop() {
- echo "Stopping $PROG"
174
+ echo "Force stopping $PROG"
175
pkill $1 -f "${PYTHON} ${EXEC}"
176
177
@@ -223,6 +224,7 @@ case "${ACTION}" in
223
224
stop)
225
rh_status_q || exit 0
226
${ACTION}
227
+ pstatus && forcestop -9
228
;;
229
restart)
230
0 commit comments