Changes between Version 3 and Version 4 of JuergeN/Documentation
- Timestamp:
- 26.08.2011 12:37:26 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
JuergeN/Documentation
v3 v4 8 8 9 9 == start stop script == 10 Create a file''deepamehta'' in ''/etc/init.d'':10 Create a scipt named ''deepamehta'' in ''/etc/init.d'': 11 11 {{{ 12 12 #! /bin/sh … … 17 17 # Default-Start: 2 3 4 5 18 18 # Default-Stop: 0 1 6 19 # Short-Description: Example initscript 20 # Description: This file should be used to construct scripts to be 21 # placed in /etc/init.d. 19 # Short-Description: DeepaMehta initscript 20 # Description: This file should be used to start and stop DeepaMehta. 21 # To be placed in /etc/init.d. 22 # Author: Juergen Neumann <j.neumann{at}junes{dot}eu> 23 # 22 24 ### END INIT INFO 23 24 #echo "deepamehta start-stop-script is disabled!"25 #exit 026 27 # Author: Juergen Neumann <j.neumann{at}junes{dot}eu>28 #29 # Please remove the "Author" lines above and replace them30 # with your own name if you copy and modify this script.31 25 32 26 # Do NOT "set -e" … … 36 30 DESC="DeepaMehta" 37 31 NAME=deepamehta 38 #DAEMON=/usr/sbin/$NAME39 32 DAEMON=/opt/deepamehta/dm.sh 40 33 EXTRA_ARGS="-c root --background --make-pidfile" … … 97 90 # sleep for some time. 98 91 start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --pidfile $PIDFILE 99 # --startas $DAEMON100 92 [ "$?" = 2 ] && return 2 101 93 # Many daemons don't delete their pidfiles when they exit.