projects/aports·blob master · refs

20 lines · 410 B

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