mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 13:41:20 +02:00
23 lines
487 B
Plaintext
23 lines
487 B
Plaintext
#!/sbin/openrc-run
|
|
|
|
name=gonic
|
|
command="/usr/bin/gonic"
|
|
command_args="$GONIC_OPTS"
|
|
command_background=true
|
|
pidfile="/var/run/${RC_SVCNAME}.pid"
|
|
error_log="/var/log/gonic.log"
|
|
command_user="gonic:gonic"
|
|
|
|
start_pre() {
|
|
checkpath -f --owner "$command_user" --mode 0644 \
|
|
/var/log/gonic.log
|
|
checkpath -d --owner "$command_user" --mode 0755 \
|
|
/var/lib/gonic/
|
|
checkpath -d --owner "$command_user" --mode 0755 \
|
|
/var/cache/gonic/
|
|
}
|
|
|
|
depend() {
|
|
need net
|
|
after firewall
|
|
} |