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




                       
           

                   
                 
                  
            
              
                                                
                                                                                             
                                                    
                
                   
                                        
              


                          
[Unit]
Description=XMPP Server
After=network.target

[Service]
Type=notify
User=@installuser@
Group=@installuser@
LimitNOFILE=65536
Restart=on-failure
RestartSec=5
WatchdogSec=30
ExecStart=@ctlscriptpath@/ejabberdctl foreground
ExecStop=/bin/sh -c '@ctlscriptpath@/ejabberdctl stop && @ctlscriptpath@/ejabberdctl stopped'
ExecReload=@ctlscriptpath@/ejabberdctl reload_config
NotifyAccess=all
PrivateDevices=true
AmbientCapabilities=CAP_NET_BIND_SERVICE
TimeoutSec=300

[Install]
WantedBy=multi-user.target