Starting Redmine at boot using upstart on Ubuntu
Posted
by
joekr
on Super User
See other posts from Super User
or by joekr
Published on 2012-07-05T10:20:49Z
Indexed on
2012/07/05
15:18 UTC
Read the original article
Hit count: 335
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"
© Super User or respective owner