source: scripts/etc/init.d/7dtd.sh@ 11

Last change on this file since 11 was 10, checked in by alloc, 11 years ago

Version 1

  • Property svn:executable set to *
File size: 1.1 KB
RevLine 
[1]1#!/bin/sh
[10]2# Version 1
[1]3
4### BEGIN INIT INFO
5# Provides: 7dtd-server
6# Required-Start: $remote_fs
7# Required-Stop: $remote_fs
8# Should-Start: $named
9# Should-Stop: $named
10# Default-Start: 2 3 4 5
11# Default-Stop: 0 1 6
12# Short-Description: 7 Days to Die server
13# Description: Starts a 7 Days to Die server
14### END INIT INFO
15
[9]16. /usr/local/bin/7dtd-common.sh
17checkRootLoadConf
[1]18
19case "$1" in
20 start)
[9]21 echo "Starting all 7dtd instances:"
22 for I in $SDTD_BASE/instances/*; do
23 ins=`basename $I`
24 echo "Starting: $ins"
25 /usr/local/bin/7dtd-start.sh $ins
26 done
27 echo "All done"
[1]28 ;;
29 stop)
[9]30 echo "Stopping all 7dtd instances:"
31 for I in $SDTD_BASE/instances/*; do
32 ins=`basename $I`
33 echo "Stopping: $ins"
34 /usr/local/bin/7dtd-kill.sh $ins
35 echo
36 echo
37 done
38 echo "All done"
[1]39 ;;
40 status)
[9]41 /usr/local/bin/7dtd-instances.sh
[1]42 ;;
43 *)
44 echo "Usage: ${0} {start|stop|status}"
45 exit 2
46esac
47exit 0
Note: See TracBrowser for help on using the repository browser.