blob: 95a021e5a023fa98ef40df48642ec7218d244786 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/sbin/openrc-run
pidfile="/run/ananicy.pid"
command="/usr/bin/ananicy"
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"
}
|