guru/app-admin/ananicy-cpp/files/ananicy-cpp.initd
Alessandro Barbieri 572b4347fe
app-admin/ananicy-cpp: new package, add 1.0.0_rc6
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-04-26 12:33:34 +02:00

19 lines
328 B
Plaintext

#!/sbin/openrc-run
pidfile="/run/ananicy-cpp.pid"
command="/usr/bin/ananicy-cpp"
command_args="start"
command_background=true
start_pre() {
/usr/sbin/sysctl -e kernel.sched_autogroup_enabled=0
}
stop_post() {
/usr/sbin/sysctl -e kernel.sched_autogroup_enabled=1
}
stop() {
start-stop-daemon --stop --pidfile "$pidfile"
}