229
|
1 |
#!/sbin/openrc-run |
237
|
2 |
# Copyright 2020 Gentoo Authors |
229
|
3 |
# Distributed under the terms of the GNU General Public License v2 |
|
4 |
|
|
5 |
export GOMAXPROCS=${GOMAXPROCS:-2} |
|
6 |
group=${group:-${RC_SVCNAME}} |
|
7 |
user=${user:-${RC_SVCNAME}} |
237
|
8 |
description="simple and flexible workload orchestrator" |
229
|
9 |
command="/usr/bin/${RC_SVCNAME}" |
237
|
10 |
pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} |
229
|
11 |
command_background="true" |
|
12 |
start_stop_daemon_args="--user ${user} --group ${group} \ |
237
|
13 |
--stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \ |
|
14 |
--stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log" |
|
15 |
stopsig=SIGINT |
|
16 |
extra_started_commands=reload |
229
|
17 |
|
|
18 |
depend() { |
237
|
19 |
after net |
229
|
20 |
} |
|
21 |
|
|
22 |
reload() { |
237
|
23 |
start-stop-daemon --signal HUP --pidfile "${pidfile}" |
229
|
24 |
} |