22 lines
556 B
Text
Executable file
22 lines
556 B
Text
Executable file
#!/sbin/openrc-run
|
|
|
|
name=$RC_SVCNAME
|
|
cfgfile="/etc/qubes/$RC_SVCNAME.conf"
|
|
command="/usr/bin/qubes-firewall"
|
|
command_args=""
|
|
command_user="root"
|
|
pidfile="/run/qubes/$RC_SVCNAME.pid"
|
|
start_stop_daemon_args=""
|
|
command_background="yes"
|
|
output_log="/var/log/qubes/$RC_SVCNAME.log"
|
|
error_log="/var/log/qubes/$RC_SVCNAME.err"
|
|
|
|
depend() {
|
|
need qubes-db
|
|
}
|
|
|
|
start_pre() {
|
|
/sbin/ethtool -K "$(get_qubes_managed_iface)" sg off
|
|
checkpath --directory --owner $command_user:qubes --mode 0775 \
|
|
/run/$RC_SVCNAME /var/log/qubes
|
|
}
|