Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2015-02-23 17:52:18 +0300
committerChristophe Romain <christophe.romain@process-one.net>2015-02-23 17:52:18 +0300
commite0ffcbe45dcb875ded7308f629e3e92949990fda (patch)
treef66bfa4c6c9d5a6b573946acbca27ae49e22d21d /ejabberd.service.template
parent0c0947a24166bc2660fcc6dbc8d5a49d9a3a99a5 (diff)
Add script for systemd (Guthub #434)
Diffstat (limited to 'ejabberd.service.template')
-rw-r--r--ejabberd.service.template17
1 files changed, 17 insertions, 0 deletions
diff --git a/ejabberd.service.template b/ejabberd.service.template
new file mode 100644
index 000000000..79c2a6441
--- /dev/null
+++ b/ejabberd.service.template
@@ -0,0 +1,17 @@
+[Unit]
+Description=XMPP Server
+After=network.target
+
+[Service]
+User=ejabberd
+Group=ejabberd
+LimitNOFILE=16000
+RestartSec=5
+ExecStart=/bin/sh @ctlscriptpath@/ejabberdctl start
+ExecStop=@ctlscriptpath@/ejabberdctl stop
+ExecReload=@ctlscriptpath@/ejabberdctl reload_config
+Type=oneshot
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target