f77e3588dc
user/lua-aports: upgrade user/paperless-ng: upgrade + openrc user/paperless-ngx: new aport user/py3-anyio: new aport user/py3-dateparser: upgrade user/py3-pdf2image: new aport user/py3-pyaml: new aport user/py3-pytz: new aport user/py3-pyyaml: new aport user/py3-tzdata: new aport user/py3-tzlocal: new aport user/rmfakecloud: upgrade user/scanbd: new aport user/scantopl: new aport user/xinetd: new aport
21 lines
501 B
Text
21 lines
501 B
Text
#!/sbin/openrc-run
|
|
|
|
name=$RC_SVCNAME
|
|
cfgfile="/etc/conf.d/$RC_SVCNAME.conf"
|
|
pidfile="/var/run/$RC_SVCNAME.pid"
|
|
command="/usr/bin/insaned"
|
|
command_user="$INSANED_USER"
|
|
command_group="$INSANED_GROUP"
|
|
command_args="-f $INSANED_LOG -p $pidfile ${INSANED_EXTRAOPTS}"
|
|
start_stop_daemon_args=""
|
|
command_background="no"
|
|
|
|
depend() {
|
|
after saned
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath --directory --owner $command_user:$command_group --mode 0775 \
|
|
/var/run/$RC_SVCNAME \
|
|
/var/log/$RC_SVCNAME
|
|
}
|