4 # Provides: pvefw-logger
5 # Required-Start: $remote_fs $network $syslog pve-cluster +cman +clvm
6 # Required-Stop: $remote_fs $network $syslog pve-cluster +cman +clvm
7 # Default-Start: 2 3 4 5
9 # Short-Description: PVE firewall logger
12 . /lib/lsb/init-functions
14 PATH=/sbin:/bin:/usr/bin:/usr/sbin
15 DAEMON=/usr/sbin/pvefw-logger
17 DESC="PVE firewall logger"
18 PIDFILE=/var/run/pvefw-logger.pid
20 test -f $DAEMON || exit 0
21 [ -e /proxmox_install_mode ] && exit 0
23 # avoid warnings about uninstalled locales
28 log_daemon_msg "Starting $DESC" "$NAME"
29 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON
33 log_daemon_msg "Stopping $DESC" "$NAME"
34 start-stop-daemon --stop --quiet --retry TERM/2/TERM/15/KILL/2 --pidfile $PIDFILE
37 reload|restart|force-reload)
38 log_daemon_msg "Restarting $DESC" "$NAME"
39 start-stop-daemon --stop --quiet --retry TERM/2/TERM/15/KILL/2 --pidfile $PIDFILE
40 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON
45 echo "Usage: $N {start|stop|restart|force-reload}"