#!/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"
}
