diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2015-02-23 15:52:18 +0100 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2015-02-23 15:52:18 +0100 |
commit | e0ffcbe45dcb875ded7308f629e3e92949990fda (patch) | |
tree | f66bfa4c6c9d5a6b573946acbca27ae49e22d21d /ejabberd.service.template | |
parent | Add compatibility macros for deprecated types (thanks to Alexey) (diff) |
Add script for systemd (Guthub #434)
Diffstat (limited to 'ejabberd.service.template')
-rw-r--r-- | ejabberd.service.template | 17 |
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 |