rendered paste body#!/sbin/runscript
# By ObsidianX
# Place in /etc/init.d.. for Gentoo Linux only
depend() {
use net
}
start() {
ebegin "Starting rix1 session"
start-stop-daemon --start --verbose --background \
--make-pidfile --pidfile /var/run/rix1.pid \
--chuid rixgames:admins \
--chdir /opt/games/rix_1 \
--exec /usr/bin/screen -- -A -D -m -S rix1 --\
/opt/games/rix_1/hlds_run \
-port 27015 -game cstrike -noipx -insecure -nomaster -pingboost 1 +sv_lan 1 +maxplayers 22 +map mini_dust2 1>>/log.rix1
eend $? "Failed to start rix1"
}
stop() {
ebegin "Stopping rix1"
start-stop-daemon --stop --pidfile /var/run/rix1.pid
eend $? "Failed to stop rix1"