UpstartTiddlyWiki

2nd December 2016 at 3:00pm
TechnicalNotes TiddlyWiki Ubuntu Upstart

/etc/init/tiddlywiki.conf

  • update-rc.d tiddlywiki enable
  • service tiddlywiki start
description "TiddlyWiki Server"
author      "Nicola Worthington"

start on filesystem or runlevel [2345]
stop on shutdown

script
    export HOME="/srv"
    echo $$ > /var/run/tiddlywiki.pid
    exec /usr/local/bin/tiddlywiki "$HOME/tiddlywiki" --server
end script

pre-start script
    echo "[`date`] TiddlyWiki Server Starting" >> /var/log/tiddlywiki.log
end script

pre-stop script
    rm /var/run/ssh-chat.pid
    echo "[`date`] TiddlyWiki Server Stopping" >> /var/log/tiddlywiki.log
end script