aboutsummaryrefslogtreecommitdiffstats
path: root/community/gonic/gonic.initd
blob: d7f331ac8e14ab934750d172922ea29ef1541345 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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 -W --owner "$command_user" --mode 0644 \
		/var/log/gonic.log
}

depend() {
        need net
        after firewall
}