blob: 21660587b812fe407a6f4219948cdc23e2555743 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
depend() {
use net
}
start() {
ebegin "Starting redmine"
cd /var/lib/redmine
start-stop-daemon --start --quiet \
--exec /usr/bin/ruby18 -- /usr/bin/mongrel_rails \
mongrel::start -e production \
-a ${ADDRESS} -p ${PORT} \
--user redmine --group redmine \
-c /var/lib/redmine -d -l /var/log/mongrel.log
eend $?
}
stop() {
ebegin "Stopping redmine"
cd /var/lib/redmine
start-stop-daemon --stop --quiet --pidfile /var/lib/redmine/log/mongrel.pid
eend $?
}
|