mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
ed792274e3
With "ProtectSystem", /usr is mounted read-only, so things will fail when e.g. /usr/local is used as the installation prefix. Whether such options make sense depends on the environment, so they should rather be set by package maintainers and/or admins.
19 lines
456 B
Plaintext
19 lines
456 B
Plaintext
[Unit]
|
|
Description=XMPP Server
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
User=ejabberd
|
|
Group=ejabberd
|
|
LimitNOFILE=65536
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
ExecStart=/bin/sh -c '@ctlscriptpath@/ejabberdctl start && @ctlscriptpath@/ejabberdctl started'
|
|
ExecStop=/bin/sh -c '@ctlscriptpath@/ejabberdctl stop && @ctlscriptpath@/ejabberdctl stopped'
|
|
ExecReload=@ctlscriptpath@/ejabberdctl reload_config
|
|
PrivateDevices=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|