Changes between Version 14 and Version 15 of UbuntuRunningDeepaMehtaAsDaemon
- Timestamp:
- 17.10.2011 14:02:16 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UbuntuRunningDeepaMehtaAsDaemon
v14 v15 31 31 32 32 == Create start stop script == 33 Create a sc ipt named ''deepamehta'' in ''/etc/init.d'':33 Create a script named ''deepamehta'' in ''/etc/init.d'': 34 34 {{{ 35 35 #!/bin/sh … … 56 56 EXTRA_ARGS="-c $NAME --user $NAME --name $NAME --background --make-pidfile" 57 57 DAEMON_ARGS="" 58 PIDFILE=/var/run/$NAME .pid58 PIDFILE=/var/run/$NAME/$NAME.pid 59 59 SCRIPTNAME=/etc/init.d/$NAME 60 60 … … 63 63 echo "$DAEMON not found" 64 64 exit 0 65 fi 66 67 # create PID directory 68 if [ ! -d /var/run/$NAME ]; then 69 mkdir /var/run/$NAME 70 chown $NAME:$NAME /var/run/$NAME 65 71 fi 66 72