aboutsummaryrefslogtreecommitdiffstats
path: root/community/openfire/openfire.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/openfire/openfire.initd')
-rw-r--r--community/openfire/openfire.initd24
1 files changed, 24 insertions, 0 deletions
diff --git a/community/openfire/openfire.initd b/community/openfire/openfire.initd
new file mode 100644
index 0000000000..1a370c9d88
--- /dev/null
+++ b/community/openfire/openfire.initd
@@ -0,0 +1,24 @@
+#!/sbin/openrc-run
+
+depend() {
+ need net
+ provide jabber-server
+}
+
+start() {
+ ebegin "Starting Openfire Server"
+ start-stop-daemon \
+ --user openfire \
+ --background \
+ --make-pidfile \
+ --pidfile /run/openfire.pid \
+ --start \
+ --exec $OPENFIRE_CMD -- $OPENFIRE_ARGS > /var/log/openfire.log 2>&1
+ eend
+}
+
+stop() {
+ ebegin "Stopping Openfire Server"
+ start-stop-daemon --pidfile /run/openfire.pid --stop
+ eend
+}