summaryrefslogtreecommitdiff
path: root/app-admin/ananicy-cpp/files/ananicy-cpp.initd
blob: 4d41fcbc16eb8919f4694d9215857c5301e10e69 (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-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"
}