mrkipling/maraschino — Issue #53: Suggestion: Add update functionality to initd
Author: rodneyshupe
Created: 2012-01-16 04:59:36+00:00
State: open

By adding the following to the initd you could add an update functionality.

update)
echo "Updating $DESC"
echo " * Stoping $DESC"
start-stop-daemon --stop --pidfile $PID_FILE
sleep 15
echo " * Pulling $DESC"
cd $APP_PATH
git pull https://github.com/mrkipling/maraschino.git master
cd ~
echo " * Starting $DESC"
start-stop-daemon -d $APP_PATH -c $RUN_AS --start --background --pidfile $PID_FILE --make-pidfile --exec $DAEMON -- $DAEMON_OPTS
;;