2023-08-14 03:34:15 +00:00
|
|
|
#!/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() {
|
2024-10-16 23:36:49 +00:00
|
|
|
/usr/sbin/ethtool -K "$(get_qubes_managed_iface)" sg off
|
2023-08-14 03:34:15 +00:00
|
|
|
checkpath --directory --owner $command_user:qubes --mode 0775 \
|
|
|
|
/run/$RC_SVCNAME /var/log/qubes
|
|
|
|
}
|