/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