vp-build/srcpkgs/66-boot/files/ufw/ufw

27 lines
439 B
Plaintext

[main]
@type = oneshot
@description = "CLI Netfilter Manager"
@user = ( root )
[start]
@build = auto
@execute = (
if {
if -nt { s6-test -f /etc/ufw/ufw.conf }
if { 66-echo -- /etc/ufw/ufw.conf doesn't exist }
exit 111
}
if {
if -nt { s6-test -f /usr/lib/ufw/ufw-init }
if { 66-echo -- /usr/lib/ufw/ufw-init doesn't exist }
exit 111
}
/usr/lib/ufw/ufw-init start
)
[stop]
@build = auto
@execute = (
/usr/lib/ufw/ufw-init stop
)