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

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

Fix #1, #2, #3, #5; Refs #4, #6: WD works for save path, not for some logs

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