Changeset 25
- Timestamp:
- May 27, 2014, 10:32:48 AM (10 years ago)
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
bundle_creation/makefile
r8 r25 13 13 @cp -r ../scripts/* . 14 14 15 SSD: usr/local/bin/start-stop-daemon 16 17 # start-stop-daemon: 18 usr/local/bin/start-stop-daemon: ../tools/start-stop-daemon/start-stop-daemon.c 19 @echo Compiling start-stop-daemon... 20 @gcc -Wall -Wextra -Wno-return-type -Os -o $@ $< 15 SSD: 16 @echo Copying start-stop-daemon source... 17 @find ../tools -name "*~" -exec rm {} \; 18 @cp -r ../tools/start-stop-daemon usr/local/lib/7dtd 21 19 22 20 clean: -
scripts/etc/7dtd.conf
r23 r25 21 21 export XMLSTARLET=/usr/bin/xmlstarlet 22 22 export PKILL=/usr/bin/pkill 23 export SSD=/sbin/start-stop-daemon 23 24 -
scripts/usr/local/lib/7dtd/VERSION
r24 r25 1 Current version: 72 Last edit: 2014-05-2 61 Current version: 8 2 Last edit: 2014-05-27 -
scripts/usr/local/lib/7dtd/commands/start.sh
r23 r25 39 39 OPTS="-quit -batchmode -nographics -configfile=$(getInstancePath $1)/config.xml -dedicated" 40 40 41 start-stop-daemon--start $SSD_PID $SSD_DAEMON $SSD_USER --chdir $SDTD_BASE/engine --exec $WINE -- $SDTD_BASE/engine/7DaysToDie.exe $OPTS > $(getInstancePath $1)/stdout.log 2>&141 $SSD --start $SSD_PID $SSD_DAEMON $SSD_USER --chdir $SDTD_BASE/engine --exec $WINE -- $SDTD_BASE/engine/7DaysToDie.exe $OPTS > $(getInstancePath $1)/stdout.log 2>&1 42 42 sleep 1 43 43 … … 49 49 SSD_MONITOR_PID="--pidfile $(getInstancePath $1)/monitor.pid --make-pidfile" 50 50 SSD_MONITOR_DAEMON="--background" 51 start-stop-daemon--start $SSD_MONITOR_PID $SSD_MONITOR_DAEMON --exec "/usr/local/lib/7dtd/monitor-log.sh" -- "$1"51 $SSD --start $SSD_MONITOR_PID $SSD_MONITOR_DAEMON --exec "/usr/local/lib/7dtd/monitor-log.sh" -- "$1" 52 52 echo "Done!" 53 53 else -
scripts/usr/local/lib/7dtd/commands/stop.sh
r23 r25 45 45 if [ $(isRunning $1) -eq 1 ]; then 46 46 echo "Failed, force closing server..." 47 start-stop-daemon--stop --pidfile $(getInstancePath $1)/7dtd.pid47 $SSD --stop --pidfile $(getInstancePath $1)/7dtd.pid 48 48 fi 49 49 -
scripts/usr/local/lib/7dtd/common.sh
r23 r25 61 61 # 1 = running 62 62 isRunning() { 63 start-stop-daemon--status --pidfile $(getInstancePath $1)/7dtd.pid63 $SSD --status --pidfile $(getInstancePath $1)/7dtd.pid 64 64 if [ $? -eq 0 ]; then 65 65 echo 1 -
tools/start-stop-daemon/makefile
r6 r25 2 2 gcc -Wall -Wextra -Wno-return-type -o $@ $< 3 3 4 install: start-stop-daemon 5 chown root.root start-stop-daemon 6 chmod 0755 start-stop-daemon 7 4 8 clean: 5 9 rm start-stop-daemon
Note:
See TracChangeset
for help on using the changeset viewer.