aboutsummaryrefslogblamecommitdiff
path: root/ejabberd.service.template
blob: d32353b417f9e43abd6b9796f2326a6491cebbdd (plain) (tree)
1
2
3
4
5
6
7
8
9




                       
            

              
                 
                  
            

                                                                                               
                                                    
                   
              


                          
[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
TimeoutSec=300

[Install]
WantedBy=multi-user.target