Skip to content

Instantly share code, notes, and snippets.

@daryltucker
Created November 17, 2018 03:52
Show Gist options
  • Save daryltucker/82b96dd5c7f4ecce2a5449ea9fa40193 to your computer and use it in GitHub Desktop.
Save daryltucker/82b96dd5c7f4ecce2a5449ea9fa40193 to your computer and use it in GitHub Desktop.
Debian Systemd Service File
[Unit]
Description=XMPP Server
After=network.target
[Service]
User=ejabberd
Group=ejabberd
LimitNOFILE=16000
RestartSec=5
ExecStart=/bin/bash /sbin/ejabberdctl start --config-dir /etc/ejabberd --logs /var/log/ejabberd
ExecStop=/bin/bash /sbin/ejabberdctl stop
ExecReload=/bin/bash /sbin/ejabberdctl reload_config
Type=oneshot
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment