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

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

Version 4

  • Property svn:executable set to *
File size: 625 bytes
Line 
1#!/bin/sh
2# Version 4
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
16case "$1" in
17    start)
18        /usr/local/bin/7dtd.sh start "!"
19    ;;
20    stop)
21        /usr/local/bin/7dtd.sh kill "!"
22    ;;
23    status)
24        /usr/local/bin/7dtd.sh instances
25    ;;
26    *)
27        echo "Usage: ${0} {start|stop|status}"
28        exit 2
29esac
30exit 0
Note: See TracBrowser for help on using the repository browser.