--- a/iro/MyIro_daemon Sun Feb 07 18:04:53 2010 +0100
+++ b/iro/MyIro_daemon Mon Feb 08 01:18:59 2010 +0100
@@ -1,8 +1,9 @@
#! /bin/sh
-NAME="IRO"
-DEAMON=/home/sandy/svn/iro/MyIro
+NAME="Iro"
+HOMEDIR=/home/hefee
+DEAMON=${HOMEDIR}/bin/MyIro
DEAMON_OPTS=""
-PID=/home/sandy/var/run/$NAME.pid
+PID=${HOMEDIR}/var/run/$NAME.pid
test -x $DEAMON || exit 0
@@ -11,7 +12,7 @@
case "$1" in
start)
log_daemon_msg "Starting $NAME" $NAME
- if start-stop-daemon --start --quiet --oknodo --pidfile $PID --make-pidfile --background --chuid sandy --group sandy --chdir /home/sandy/svn/iro --startas $DEAMON -- $DEAMON_OPTS; then
+ if start-stop-daemon --start --quiet --background --oknodo --pidfile $PID --make-pidfile --user hefee --group hefee --chdir ${HOMEDIR} --startas $DEAMON -- $DEAMON_OPTS; then
log_end_msg 0
else
log_end_msg 1
@@ -41,4 +42,4 @@
exit 1
esac
-exit 0
+exit 1