daemon fix

This commit is contained in:
Grzegorz Surmann 2024-07-17 22:09:56 +02:00
parent 52e19665f4
commit 24c5147245

View File

@ -25,13 +25,13 @@ cd $mypath
case "$1" in case "$1" in
start) start)
log_daemon_msg "Starting bgpblacklist" 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 $? log_end_msg $?
;; ;;
stop) stop)
log_daemon_msg "Stopping bgpblacklist" log_daemon_msg "Stopping bgpblacklist"
killall -HUP -g allall.php >/dev/null 2>&1 killall -HUP -g bgpblacklistd >/dev/null 2>&1
start-stop-daemon --oknodo --stop --quiet --pidfile /var/run/allall.pid --exec $mypath/allall.php start-stop-daemon --oknodo --stop --quiet --pidfile /var/run/bgpblacklistd.pid --exec $mypath/sbin/bgpblacklistd
log_end_msg $? log_end_msg $?
;; ;;
restart) restart)