3 daemon_name
=redmine-webrick
7 .
/etc
/conf.d
/redmine.conf
12 if [ -f $PIDFILE ]; then
19 stat_busy
"Starting $daemon_name standalone webserver"
22 if [ -z "$PID" ]; then
23 [ -f $PIDFILE ] && rm -f $PIDFILE
25 su redmine
-c "${RUBY_CMD} ${REDMINE_HOME}/script/server -d -e ${REDMINEDB} > ${REDMINE_LOG} 2>&1"
26 # did the daemon start correctly?
28 echo "daemon could not get started successfully"
32 if [ -f $PIDFILE ]; then
33 add_daemon
$daemon_name
36 echo "daemon has not created pid-file"
48 stat_busy
"Stopping $daemon_name webserver"
51 [ ! -z "$PID" ] && kill -9 $PID &> /dev
/null
57 rm -f $PIDFILE &> /dev
/null
58 rm_daemon
$daemon_name
69 echo "usage: $0 {start|stop|restart}"