31 lines
715 B
Text
31 lines
715 B
Text
|
#!/sbin/openrc-run
|
||
|
|
||
|
name=$RC_SVCNAME
|
||
|
cfgfile="/etc/qubes/$RC_SVCNAME.conf"
|
||
|
command="/usr/lib/qubes/init/network-proxy-setup"
|
||
|
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"
|
||
|
|
||
|
# Source Qubes library.
|
||
|
# shellcheck source=init/functions
|
||
|
. /usr/lib/qubes/init/functions
|
||
|
|
||
|
depend() {
|
||
|
need net
|
||
|
}
|
||
|
|
||
|
start_pre() {
|
||
|
if is_netvm; then
|
||
|
/usr/lib/qubes/network-manager-prepare-conf-dir
|
||
|
/sbin/service networkmanager start
|
||
|
fi
|
||
|
|
||
|
checkpath --directory --owner $command_user:qubes --mode 0775 \
|
||
|
/run/$RC_SVCNAME /var/log/$RC_SVCNAME
|
||
|
}
|