Starting Redmine at boot using upstart on Ubuntu
- by joekr
So after installing redmine from the repositories on Ubuntu 12.04, i've tried to create an upstart script (see below) so it would start up at boot time.
While
service redmine start
does start redmine, it does not start automatically when booting. Also when i run
service redmine stop
it does stop redmine but simply hangs until i press ctrl+c
Also, after stopping starting it again does not work (Also just hangs).
From all the upstart examples and tutorials i have seen this should work, so i guess i'm overlooking something. Any hints ?
#Redmine
description "Redmine"
start on started networking
stop on stopping networking
stop on starting shutdown
console output
expect daemon
exec ruby /usr/share/redmine/script/server webrick -e production -b 188.40.184.155 -p 3000 -d
respawn
EDIT: Fixed "typo"