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
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)