This is the smallest init script for the tt-rss update deamon I've found. It works well under Debian and should work under Ubuntu. You can save it in /etc/init.d/tt-rss and make it executable using chmod +x /etc/init.d/tt-rss. To let it automatically start (and stop) install it in the rc.d using update-rc.d tt-rss default.

Here's the script:


DAEMON_OPTS="./update.php --daemon"

case "$1" in
      echo -n "Starting daemon: "$NAME
      start-stop-daemon --start --chdir $APPDIR --background --quiet --chuid $USER --make-pidfile --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS
      echo "."
      echo -n "Stopping daemon: "$NAME
      start-stop-daemon --stop --chdir $APPDIR --quiet --chuid $USER --oknodo --pidfile $PIDFILE
      echo "."
      echo -n "Restarting daemon: "$NAME
      start-stop-daemon --stop --chdir $APPDIR --quiet --chuid $USER --oknodo --retry 30 --pidfile $PIDFILE
      start-stop-daemon --start --chdir $APPDIR --background --quiet --chuid $USER --make-pidfile --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS
      echo "."
      echo "Usage: "$1" {start|stop|restart}"
      exit 1

exit 0

code debian rss tt-rss unix

This is my new blog. It may contain interesting thins, or not. The articles may cover some of the following topics: parenting, coding, vim, infrastructure, public transport troubles, gadgets, recipes, ...

Who I am

I am a software developer, housband and father who likes to learn new stuff. I like food, cooking, gadgets. I love my daughter and my wife. I live and work in Munich. And I really love that city.


Social Networks

Well a few weeks ago I decided to quit nearly all the social networks. They produce a lot of white-bread information I do not take care of. But somehow you read your "streams" multiple times a day so you don't miss the one of a thousand news you are interested in. That's the reason I quit.

Contact me