25 lines
571 B
Plaintext
Executable File
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
|
|
#WILDFIRE_CMD="${JAVA_HOME}/bin/java"
|
|
WILDFIRE_CMD=`GENTOO_VM=${GENTOO_VM} java-config -J`
|
|
|
|
ebegin "Starting Wildfire Server"
|
|
start-stop-daemon --chuid jabber --background --make-pidfile --pidfile /var/run/jabber/wildfire.pid --start --startas ${WILDFIRE_CMD} -- ${WILDFIRE_ARGS} > /var/log/wildfire.log 2>&1
|
|
eend
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping Wildfire Messenger"
|
|
start-stop-daemon --pidfile /var/run/jabber/wildfire.pid --stop
|
|
eend
|
|
}
|