Last change
on this file since 344 was 258, checked in by alloc, 9 years ago |
Scripts: License
|
-
Property svn:executable
set to
*
|
File size:
1.2 KB
|
Rev | Line | |
---|
[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 |
|
---|
[258] | 15 | # Copyright 2016 Christian 'Alloc' Illy
|
---|
| 16 | #
|
---|
| 17 | # Licensed under the Apache License, Version 2.0 (the "License");
|
---|
| 18 | # you may not use this file except in compliance with the License.
|
---|
| 19 | # You may obtain a copy of the License at
|
---|
| 20 | #
|
---|
| 21 | # http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 22 | #
|
---|
| 23 | # Unless required by applicable law or agreed to in writing, software
|
---|
| 24 | # distributed under the License is distributed on an "AS IS" BASIS,
|
---|
| 25 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
| 26 | # See the License for the specific language governing permissions and
|
---|
| 27 | # limitations under the License.
|
---|
| 28 |
|
---|
| 29 |
|
---|
[1] | 30 | case "$1" in
|
---|
| 31 | start)
|
---|
[17] | 32 | /usr/local/bin/7dtd.sh start "!"
|
---|
[1] | 33 | ;;
|
---|
| 34 | stop)
|
---|
[17] | 35 | /usr/local/bin/7dtd.sh kill "!"
|
---|
[1] | 36 | ;;
|
---|
| 37 | status)
|
---|
[17] | 38 | /usr/local/bin/7dtd.sh instances
|
---|
[1] | 39 | ;;
|
---|
| 40 | *)
|
---|
| 41 | echo "Usage: ${0} {start|stop|status}"
|
---|
| 42 | exit 2
|
---|
| 43 | esac
|
---|
| 44 | exit 0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.