summaryrefslogtreecommitdiff
path: root/community/sauerbraten/sauerbraten.rcd
diff options
context:
space:
mode:
Diffstat (limited to 'community/sauerbraten/sauerbraten.rcd')
-rw-r--r--community/sauerbraten/sauerbraten.rcd37
1 files changed, 0 insertions, 37 deletions
diff --git a/community/sauerbraten/sauerbraten.rcd b/community/sauerbraten/sauerbraten.rcd
deleted file mode 100644
index fb95aae16..000000000
--- a/community/sauerbraten/sauerbraten.rcd
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-case "$1" in
- start)
- stat_busy "Starting sauerbraten-server"
- [ ! -f /var/run/daemons/sauerbraten ] && /usr/sbin/sauerbraten-server
- if [ $? -gt 0 ]; then
- stat_fail
- else
- pgrep -of "/opt/sauerbraten/bin/linux_server" > /var/run/sauerbraten.pid
- add_daemon sauerbraten
- stat_done
- fi
- ;;
-
- stop)
- stat_busy "Stopping sauerbraten-server"
- [ -f /var/run/sauerbraten.pid ] && kill `cat /var/run/sauerbraten.pid`
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm_daemon sauerbraten
- stat_done
- fi
- ;;
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0