Browse Source

rc script

master
Mael G. 1 year ago
parent
commit
9564f96e08
  1. 18
      adrian/adrian.init

18
adrian/adrian.init

@ -0,0 +1,18 @@
#!/sbin/openrc-run
name=adrian
cfgfile="/etc/adrian/adrian.yaml"
command="/usr/local/bin/adrian"
command_args="--config"
command_user="adrian"
command_background="yes"
pidfile="/run/$RC_SVCNAME/$RC_SVCNAME.pid"
depend() {
need net
}
start_pre() {
checkpath --directory --owner $command_user:$command_user --mode 0775 \
/etc/adrian/ /run/$RC_SVCNAME
}
Loading…
Cancel
Save