blob: 1e6914734079b59144d4dc143d1c3abe5516dc3a (
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
29
30
31
32
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-servers/resin/files/2.1.17/resin.init,v 1.1 2006/07/29 16:24:35 nelchael Exp $
depend() {
need net
use dns logger mysql postgresql
}
start() {
ebegin "Starting Resin"
cd ${RESIN_HOME}
su - ${RESIN_USER} -c "/opt/resin/bin/httpd.sh ${RESIN_START}"
eend $?
}
stop() {
ebegin "Stopping Resin"
su - ${RESIN_USER} -c "/opt/resin/bin/httpd.sh ${RESIN_STOP}"
sleep 2
eend $?
}
restart() {
ebegin "Restarting Resin"
su - ${RESIN_USER} -c "/opt/resin/bin/httpd.sh ${RESIN_STOP}"
sleep 5
cd ${RESIN_HOME}
su - ${RESIN_USER} -c "/opt/resin/bin/httpd.sh ${RESIN_START}"
eend $?
}
|