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