/lib/systemd/system/ejabberd.service is in ejabberd 16.09-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | [Unit]
Description=A distributed, fault-tolerant Jabber/XMPP server
Documentation=https://www.process-one.net/en/ejabberd/docs/
After=epmd.service network.target
Requires=epmd.service
[Service]
User=ejabberd
Group=ejabberd
LimitNOFILE=32768
RestartSec=5
ExecStart=/bin/sh -c '/usr/sbin/ejabberdctl start && /usr/sbin/ejabberdctl started'
ExecStop=/bin/sh -c '/usr/sbin/ejabberdctl stop && /usr/sbin/ejabberdctl stopped'
Type=forking
Restart=on-failure
PIDFile=/run/ejabberd/ejabberd.pid
PrivateTmp=true
PrivateDevices=true
ProtectHome=true
ProtectSystem=full
[Install]
WantedBy=multi-user.target
|