1 | #!/bin/sh
|
---|
2 |
|
---|
3 | # Copyright 2016 Christian 'Alloc' Illy
|
---|
4 | #
|
---|
5 | # Licensed under the Apache License, Version 2.0 (the "License");
|
---|
6 | # you may not use this file except in compliance with the License.
|
---|
7 | # You may obtain a copy of the License at
|
---|
8 | #
|
---|
9 | # http://www.apache.org/licenses/LICENSE-2.0
|
---|
10 | #
|
---|
11 | # Unless required by applicable law or agreed to in writing, software
|
---|
12 | # distributed under the License is distributed on an "AS IS" BASIS,
|
---|
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
14 | # See the License for the specific language governing permissions and
|
---|
15 | # limitations under the License.
|
---|
16 |
|
---|
17 |
|
---|
18 | # Root of the 7dtd folders, containing e.g. the "engine", "instances" folders
|
---|
19 | export SDTD_BASE=/home/sdtd
|
---|
20 |
|
---|
21 | # How many seconds should stopping wait for the instance to shutdown
|
---|
22 | export STOP_WAIT=5
|
---|
23 |
|
---|
24 | # Backup options
|
---|
25 | export SDTD_BACKUP_ROOT=/home/sdtd/backup
|
---|
26 | export SDTD_BACKUP_SAVEWORLD=true
|
---|
27 | export SDTD_BACKUP_MIN_BACKUPS_KEEP=
|
---|
28 | export SDTD_BACKUP_MAX_BACKUPS=
|
---|
29 | export SDTD_BACKUP_MAX_STORAGE=
|
---|
30 | export SDTD_BACKUP_MAX_AGE=
|
---|
31 | export SDTD_BACKUP_COMPRESS=none
|
---|
32 |
|
---|
33 | # User account and group to run the server
|
---|
34 | export SDTD_USER=sdtd
|
---|
35 | export SDTD_GROUP=sdtd
|
---|
36 |
|
---|
37 | # Paths to binaries. Use "which BINARYNAME" to find the path of a single binary
|
---|
38 | export RSYNC=/usr/bin/rsync
|
---|
39 | export XMLSTARLET=/usr/bin/xmlstarlet
|
---|
40 | export PKILL=/usr/bin/pkill
|
---|
41 | export SSD=/usr/local/lib/7dtd/start-stop-daemon/start-stop-daemon
|
---|
42 | export EDITOR=/usr/bin/editor
|
---|