alpha-quadrant/net-im/openfire/files/init.d/openfire
2007-05-04 09:14:10 +00:00

25 lines
571 B
Plaintext
Executable File

#!/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
}