summaryrefslogtreecommitdiff
path: root/community/ejabberd/ejabberd.service
diff options
context:
space:
mode:
Diffstat (limited to 'community/ejabberd/ejabberd.service')
-rw-r--r--community/ejabberd/ejabberd.service20
1 files changed, 20 insertions, 0 deletions
diff --git a/community/ejabberd/ejabberd.service b/community/ejabberd/ejabberd.service
new file mode 100644
index 000000000..47e5f2e27
--- /dev/null
+++ b/community/ejabberd/ejabberd.service
@@ -0,0 +1,20 @@
+[Unit]
+Description=A distributed, fault-tolerant Jabber/XMPP server
+After=network.target
+
+[Service]
+Type=oneshot
+User=ejabberd
+Group=jabber
+LimitNOFILE=16000
+RestartSec=5
+ExecStart=/usr/sbin/ejabberdctl \
+ --config /etc/ejabberd/ejabberd.cfg \
+ --ctl-config /etc/ejabberd/ejabberdctl.cfg \
+ --logs "/var/log/ejabberd" \
+ --spool "/var/lib/ejabberd" start
+ExecStop=/usr/sbin/ejabberdctl stop
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target