diff options
author | Taner Tas <taner76@gmail.com> | 2018-09-03 22:25:30 +0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-09-04 10:36:49 +0000 |
commit | c045c835e171568e0c695a1f623270c584214545 (patch) | |
tree | a42c08a5d942e23b9d77a1591cd34d3b46e37642 /testing/openfire/openfire.initd | |
parent | a6caef63909ff1fc535a9c3a236cd50ba0e612b1 (diff) | |
download | aports-c045c835e171568e0c695a1f623270c584214545.tar.bz2 aports-c045c835e171568e0c695a1f623270c584214545.tar.xz |
testing/openfire: new aport
https://www.igniterealtime.org/projects/openfire/
Openfire is a cross-platform real-time collaboration server based on the XMPP (Jabber) protocol.
Diffstat (limited to 'testing/openfire/openfire.initd')
-rw-r--r-- | testing/openfire/openfire.initd | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/openfire/openfire.initd b/testing/openfire/openfire.initd new file mode 100644 index 0000000000..1a370c9d88 --- /dev/null +++ b/testing/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 +} |