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