]> granicus.if.org Git - ejabberd/commitdiff
Add script for systemd (Guthub #434)
authorChristophe Romain <christophe.romain@process-one.net>
Mon, 23 Feb 2015 14:52:18 +0000 (15:52 +0100)
committerChristophe Romain <christophe.romain@process-one.net>
Mon, 23 Feb 2015 14:52:18 +0000 (15:52 +0100)
ejabberd.service.template [new file with mode: 0644]

diff --git a/ejabberd.service.template b/ejabberd.service.template
new file mode 100644 (file)
index 0000000..79c2a64
--- /dev/null
@@ -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