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
22 [ -e /proxmox_install_mode
] && exit 0
26 # Read configuration variable file if it is present
27 [ -r /etc
/default
/$NAME ] && .
/etc
/default
/$NAME
29 [ "$START_FIREWALL" = "yes" ] ||
exit 0
31 # Load the VERBOSE setting and other rcS variables
34 # Define LSB log_* functions.
35 # Depend on lsb-base (>= 3.2-14) to ensure that this file is present
36 # and status_of_proc is working.
37 .
/lib
/lsb
/init-functions
39 # avoid warnings about uninstalled locales
44 log_daemon_msg
"Starting $DESC" "$NAME"
49 log_daemon_msg
"Stopping $DESC" "$NAME"
56 reload|restart|force-reload
)
57 log_daemon_msg
"Restarting $DESC" "$NAME"
58 if ( [ -e $PIDFILE ] && kill -0 `cat $PIDFILE`) then
59 start-stop-daemon
--stop --quiet --pidfile $PIDFILE --signal HUP
67 echo "Usage: $N {start|stop|status|restart|force-reload}"