summarylogtreecommitdiffstats
path: root/ananicy.initd
blob: e949d54e607ed1ecf2e4d302fa0a0616f5a94e75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/openrc-run

pidfile="/run/ananicy.pid"
command="/usr/bin/ananicy"
command_args="start"
command_background=true

start_pre() {
       /sbin/sysctl -e kernel.sched_autogroup_enabled=0
}

stop_post() {
       /sbin/sysctl -e kernel.sched_autogroup_enabled=1
}

stop() {
       start-stop-daemon --stop --pidfile "$pidfile"
}