$!/sbin/runscript
 
depend() {
	need net
}
 
start() {
	ebegin "Starting redmine"
	start-stop-daemon --start --make-pidfile --chuid apache:apache --quiet --name redmine --pidfile /opt/redmine/redmine.pid \
	 --exec /usr/bin/ruby /opt/redmine/script/server webrick -- -e production -d
	eend $?
}
 
 
stop() {
	ebegin "Stopping redmine"
	start-stop-daemon --stop --quiet --pidfile /opt/redmine/redmine.pid
	eend $?
}