4 # Provides: pve-firewall
5 # Required-Start: $remote_fs $network pvefw-logger pve-cluster
6 # Required-Stop: $remote_fs $network pvefw-logger pve-cluster
7 # Default-Start: 2 3 4 5
9 # Short-Description: Proxmox VE firewall
12 .
/lib
/lsb
/init-functions
14 PATH
=/sbin
:/bin
:/usr
/bin
:/usr
/sbin
16 DAEMON
=/usr
/sbin
/$NAME
17 DESC
="Proxmox VE firewall"
18 PIDFILE
=/var
/run
/$NAME.pid
20 # Exit if the package is not installed
21 [ -x "$DAEMON" ] ||
exit 0
25 # Read configuration variable file if it is present
26 [ -r /etc
/default
/$NAME ] && .
/etc
/default
/$NAME
28 [ "$START_FIREWALL" = "yes" ] ||
exit 0
30 # Load the VERBOSE setting and other rcS variables
33 # Define LSB log_* functions.
34 # Depend on lsb-base (>= 3.2-14) to ensure that this file is present
35 # and status_of_proc is working.
36 .
/lib
/lsb
/init-functions
38 # avoid warnings about uninstalled locales
43 log_daemon_msg
"Starting $DESC" "$NAME"
48 log_daemon_msg
"Stopping $DESC" "$NAME"
55 reload|restart|force-reload
)
56 log_daemon_msg
"Restarting $DESC" "$NAME"
57 if ( [ -e $PIDFILE ] && kill -0 `cat $PIDFILE`) then
58 start-stop-daemon
--stop --quiet --pidfile $PIDFILE --signal HUP
66 echo "Usage: $N {start|stop|status|restart|force-reload}"