https://bugzilla.redhat.com/show_bug.cgi?id=1163812

stephane de Labrusse <step...@de-labrusse.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |step...@de-labrusse.fr



--- Comment #20 from stephane de Labrusse <step...@de-labrusse.fr> ---
I hit this big on centos7 and ejabberd-18.06, I solved it in my case by this
systemd script :

# /usr/lib/systemd/system/ejabberd.service
[unit]
Description=XMPP Server
After=network.target

[Service]
Type=forking
User=ejabberd
Group=ejabberd
LimitNOFILE=65536
Restart=on-failure
RestartSec=5
Environment=LOGS_DIR=/var/log/ejabberd 
Environment=EJABBERD_CONFIG_PATH=/etc/ejabberd/ejabberd.yml 
Environment=SPOOL_DIR=/var/lib/ejabberd
ExecStart=/bin/sh -c '/opt/ejabberd-18.06/bin/ejabberdctl start &&
/opt/ejabberd-18.06/bin/ejabberdctl started'
ExecStop=/bin/sh -c '/opt/ejabberd-18.06/bin/ejabberdctl stop &&
/opt/ejabberd-18.06/bin/ejabberdctl stopped'
ExecReload=/bin/sh -c '/opt/ejabberd-18.06/bin/ejabberdctl reload_config'
PrivateDevices=true


[Install]
WantedBy=multi-user.target


I can control now ejabberd by systemd and ejabberdctl

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
erlang mailing list -- erlang@lists.fedoraproject.org
To unsubscribe send an email to erlang-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/erlang@lists.fedoraproject.org/message/RXFHVAJDRJMZMWMYVTNJNSLP76MQOXSC/

Reply via email to