| 1 | #!/sbin/openrc-run |
| 2 | |
| 3 | description="Lore revision control server" |
| 4 | |
| 5 | command="/usr/bin/loreserver" |
| 6 | command_args="--config /etc/lore/server" |
| 7 | command_user="lore:lore" |
| 8 | command_background=true |
| 9 | pidfile="/run/$RC_SVCNAME.pid" |
| 10 | output_log="/var/log/lore/server.log" |
| 11 | error_log="/var/log/lore/server.log" |
| 12 | |
| 13 | depend() { |
| 14 | need net |
| 15 | after firewall |
| 16 | } |
| 17 | |
| 18 | start_pre() { |
| 19 | checkpath -d -m 0750 -o lore:lore /var/lib/lore /var/log/lore |
| 20 | } |