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.service10
1 files changed, 2 insertions, 8 deletions
diff --git a/community/ejabberd/ejabberd.service b/community/ejabberd/ejabberd.service
index 47e5f2e27..e7cef53b2 100644
--- a/community/ejabberd/ejabberd.service
+++ b/community/ejabberd/ejabberd.service
@@ -3,18 +3,12 @@ Description=A distributed, fault-tolerant Jabber/XMPP server
After=network.target
[Service]
-Type=oneshot
+Type=forking
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
+ExecStart=/usr/bin/erl -pa /usr/lib/ejabberd/ebin -sname ejabberd -s ejabberd -ejabberd config \"/etc/ejabberd/ejabberd.cfg\" log_path \"/var/log/ejabberd/ejabberd.log\" -sasl sasl_error_logger \{file,\"/var/log/ejabberd/sasl.log\"\} -mnesia dir \"/var/lib/ejabberd\" -detached -kernel inetrc \"/etc/ejabberd/inetrc\"
[Install]
WantedBy=multi-user.target