projects/aports·blob master · refs

20 lines · 394 B

1#!/sbin/openrc-run
2
3name="Semaphore UI"
4
5: "${command_user:="semaphore:semaphore"}"
6
7command="/usr/bin/semaphore"
8: "${config_file:="/var/lib/semaphore/config.json"}"
9: "${command_args:="server --config $config_file"}"
10command_background="yes"
11pidfile="/run/$RC_SVCNAME.pid"
12
13depend() {
14 need net
15 after firewall
16}
17
18reload() {
19 ${supervisor} ${RC_SVCNAME} --signal HUP --pidfile "${pidfile}"
20}