mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-20 23:46:14 -04:00
19 lines
328 B
Plaintext
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"
|
|
}
|