daemon fix
This commit is contained in:
parent
52e19665f4
commit
24c5147245
@ -25,13 +25,13 @@ cd $mypath
|
||||
case "$1" in
|
||||
start)
|
||||
log_daemon_msg "Starting bgpblacklist"
|
||||
start-stop-daemon --start --quiet --pidfile /var/run/allall.pid --background --make-pidfile --exec $mypath/allall.php
|
||||
start-stop-daemon --start --quiet --pidfile /var/run/bgpblacklistd.pid --background --make-pidfile --exec $mypath/sbin/bgpblacklistd
|
||||
log_end_msg $?
|
||||
;;
|
||||
stop)
|
||||
log_daemon_msg "Stopping bgpblacklist"
|
||||
killall -HUP -g allall.php >/dev/null 2>&1
|
||||
start-stop-daemon --oknodo --stop --quiet --pidfile /var/run/allall.pid --exec $mypath/allall.php
|
||||
killall -HUP -g bgpblacklistd >/dev/null 2>&1
|
||||
start-stop-daemon --oknodo --stop --quiet --pidfile /var/run/bgpblacklistd.pid --exec $mypath/sbin/bgpblacklistd
|
||||
log_end_msg $?
|
||||
;;
|
||||
restart)
|
||||
|
Loading…
Reference in New Issue
Block a user