2015-02-23 15:52:18 +01:00
|
|
|
[Unit]
|
|
|
|
Description=XMPP Server
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=ejabberd
|
|
|
|
Group=ejabberd
|
|
|
|
LimitNOFILE=16000
|
|
|
|
RestartSec=5
|
2016-03-24 11:06:42 +01:00
|
|
|
ExecStart=@ctlscriptpath@/ejabberdctl start
|
2015-02-23 15:52:18 +01:00
|
|
|
ExecStop=@ctlscriptpath@/ejabberdctl stop
|
|
|
|
ExecReload=@ctlscriptpath@/ejabberdctl reload_config
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
2016-06-28 23:02:41 +02:00
|
|
|
# The CAP_DAC_OVERRIDE capability is required for pam authentication to work
|
|
|
|
CapabilityBoundingSet=CAP_DAC_OVERRIDE
|
|
|
|
PrivateDevices=true
|
|
|
|
ProtectSystem=full
|
|
|
|
NoNewPrivileges=true
|
2015-02-23 15:52:18 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|