~yerinalexey/gobin

ref: 63dfcb48e76116d99c5ed9c894df071fa4285b1d gobin/contrib/openrc/gobin.initd -rw-r--r-- 315 bytes
63dfcb48 — Alexey Yerin contrib: add OpenRC scripts 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/openrc-run

LOGS="/var/log/${RC_SVCNAME}.log"

command="${GOBIN_CMD:-/usr/bin/gobin}"
command_args="-config ${GOBIN_CONFIG} -log ${LOGS}"
pidfile="/run/${RC_SVCNAME}.pid"
supervisor=supervise-daemon # Without this rc-service gobin start freezes

depend() {
  need net
  use postgresql

  provide gobin
}