summaryrefslogtreecommitdiff
blob: 272e66de77125f621caa20d09d716c6f0e22ae55 (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
#!/sbin/runscript

depend() {
	need net
	provide jabber-server
}



start() {
	#source /etc/env.d/java/20sun-jdk-1.5.0.06
	#OPENFIRE_CMD="${JAVA_HOME}/bin/java"
	OPENFIRE_CMD=`GENTOO_VM=${GENTOO_VM} java-config -J`

	ebegin "Starting Openfire Server"
        start-stop-daemon --chuid jabber --background --make-pidfile --pidfile /var/run/jabber/openfire.pid --start --startas ${OPENFIRE_CMD} -- ${OPENFIRE_ARGS} > /var/log/openfire.log 2>&1
	eend
}

stop() {
	ebegin "Stopping Openfire Messenger"
	start-stop-daemon --pidfile /var/run/jabber/openfire.pid --stop
	eend
}