Switch to new download format and update esvm service
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
name: ufw
|
||||
description: Start the Uncomplicated FireWall
|
||||
type: background
|
||||
start_cmd: /etc/esvm/scripts/ufw.sh
|
||||
exit_method: kill
|
||||
description: Manage the Uncomplicated FireWall
|
||||
type: simple
|
||||
start_cmd: ufw enable
|
||||
stop_cmd: ufw disable
|
||||
exit_method: stop_command
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
stop() {
|
||||
ufw disable
|
||||
|
||||
# Clear the trap
|
||||
trap - SIGINT SIGTERM
|
||||
kill -- -$(pgrep iptables.sh)
|
||||
}
|
||||
|
||||
ufw enable
|
||||
|
||||
# Run stop function when SIGINT or SIGTERM signals are caught
|
||||
trap "stop $1" SIGINT SIGTERM
|
||||
sleep infinity
|
||||
|
||||
|
||||
Reference in New Issue
Block a user