Mercurial > kallithea
comparison hg_app_daemon2 @ 431:ccbb7ea2b203
another bugfix to init scripts
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 27 Aug 2010 15:25:23 +0200 |
parents | 41504f4aa96b |
children | 90512560ed4d |
comparison
equal
deleted
inserted
replaced
430:41504f4aa96b | 431:ccbb7ea2b203 |
---|---|
43 --pidfile $PID_PATH \ | 43 --pidfile $PID_PATH \ |
44 --user $RUN_AS \ | 44 --user $RUN_AS \ |
45 --exec $DAEMON -- $DAEMON_OPTS | 45 --exec $DAEMON -- $DAEMON_OPTS |
46 ;; | 46 ;; |
47 stop) | 47 stop) |
48 echo "Stopping $APP_NAME" | 48 ebegin "Stopping $APP_NAME" |
49 start-stop-daemon --stop --quiet \ | 49 start-stop-daemon -d $APP_PATH \ |
50 --stop --quiet \ | |
50 --pidfile $PID_PATH || echo "$APP_NAME - Not running!" | 51 --pidfile $PID_PATH || echo "$APP_NAME - Not running!" |
51 if [ -f $PID_PATH ]; then | 52 if [ -f $PID_PATH ]; then |
52 rm $PID_PATH | 53 rm $PID_PATH |
53 fi | 54 fi |
54 ;; | 55 ;; |