Commit 150fe17e authored by jan.koester's avatar jan.koester
Browse files

test

parent 0c7e2e90
Loading
Loading
Loading
Loading
+23 −0
Changes for packaging/openbsd/proxyplus.rc: 23 added lines, 0 removed lines.
Original line number Diff line number Diff line
#!/bin/ksh
#
# /etc/rc.d/proxyplus
#
# Enable with:
#   echo 'pkg_scripts="${pkg_scripts} proxyplus"' >> /etc/rc.conf.local
#
# Override the config path or add flags via /etc/rc.conf.local, e.g.:
#   proxyplus_flags="/etc/proxyplus/proxyplus.yaml"
#
# proxyplus is started as root: it binds any privileged listener ports itself
# and then drops its effective uid/gid to config.proxyplus.process.user/group
# (see src/main.cpp's dropPrivileges()) before entering its event loop. It
# also daemonizes itself by default (fork + setsid, see src/main.cpp's
# daemonize()) -- do not pass "-f true" here, that disables daemonizing and
# would make rc.subr block forever waiting for this script to return.

daemon="/usr/local/bin/proxyplus"
daemon_flags="/etc/proxyplus/proxyplus.yaml"

. /etc/rc.d/rc.subr

rc_cmd $1