Changes between Version 3 and Version 4 of JuergeN/Documentation


Ignore:
Timestamp:
26.08.2011 12:37:26 (9 years ago)
Author:
JuergeN
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • JuergeN/Documentation

    v3 v4  
    88 
    99== start stop script == 
    10 Create a file ''deepamehta'' in ''/etc/init.d'': 
     10Create a scipt named ''deepamehta'' in ''/etc/init.d'': 
    1111{{{ 
    1212#! /bin/sh 
     
    1717# Default-Start:     2 3 4 5 
    1818# 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# 
    2224### END INIT INFO 
    23  
    24 #echo "deepamehta start-stop-script is disabled!" 
    25 #exit 0 
    26  
    27 # Author: Juergen Neumann <j.neumann{at}junes{dot}eu> 
    28 # 
    29 # Please remove the "Author" lines above and replace them 
    30 # with your own name if you copy and modify this script. 
    3125 
    3226# Do NOT "set -e" 
     
    3630DESC="DeepaMehta" 
    3731NAME=deepamehta 
    38 #DAEMON=/usr/sbin/$NAME 
    3932DAEMON=/opt/deepamehta/dm.sh 
    4033EXTRA_ARGS="-c root --background --make-pidfile" 
     
    9790        # sleep for some time. 
    9891        start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --pidfile $PIDFILE 
    99         # --startas $DAEMON 
    10092        [ "$?" = 2 ] && return 2 
    10193        # Many daemons don't delete their pidfiles when they exit.