mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-10 18:31:50 +01:00
21 lines
394 B
Bash
21 lines
394 B
Bash
#!/sbin/openrc-run
|
|
|
|
name="Semaphore UI"
|
|
|
|
: "${command_user:="semaphore:semaphore"}"
|
|
|
|
command="/usr/bin/semaphore"
|
|
: "${config_file:="/var/lib/semaphore/config.json"}"
|
|
: "${command_args:="server --config $config_file"}"
|
|
command_background="yes"
|
|
pidfile="/run/$RC_SVCNAME.pid"
|
|
|
|
depend() {
|
|
need net
|
|
after firewall
|
|
}
|
|
|
|
reload() {
|
|
${supervisor} ${RC_SVCNAME} --signal HUP --pidfile "${pidfile}"
|
|
}
|