Changes between Version 14 and Version 15 of UbuntuRunningDeepaMehtaAsDaemon


Ignore:
Timestamp:
17.10.2011 14:02:16 (9 years ago)
Author:
JuergeN
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UbuntuRunningDeepaMehtaAsDaemon

    v14 v15  
    3131 
    3232== Create start stop script == 
    33 Create a scipt named ''deepamehta'' in ''/etc/init.d'': 
     33Create a script named ''deepamehta'' in ''/etc/init.d'': 
    3434{{{ 
    3535#!/bin/sh 
     
    5656EXTRA_ARGS="-c $NAME --user $NAME --name $NAME --background --make-pidfile" 
    5757DAEMON_ARGS="" 
    58 PIDFILE=/var/run/$NAME.pid 
     58PIDFILE=/var/run/$NAME/$NAME.pid 
    5959SCRIPTNAME=/etc/init.d/$NAME 
    6060 
     
    6363    echo "$DAEMON not found" 
    6464    exit 0 
     65fi 
     66 
     67# create PID directory 
     68if [ ! -d /var/run/$NAME ]; then 
     69     mkdir /var/run/$NAME 
     70     chown $NAME:$NAME /var/run/$NAME 
    6571fi 
    6672