26 lines
		
	
	
		
			615 B
		
	
	
	
		
			SYSTEMD
		
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			615 B
		
	
	
	
		
			SYSTEMD
		
	
	
	
| [Unit]
 | |
| Description=ejabberd influxdb exporter
 | |
| Documentation=https://dev.sum7.eu/sum7/ejabberd-tools/-/blob/master/README.md
 | |
| After=influxdb.service
 | |
| Requires=ejabberd.service influxdb.service
 | |
| 
 | |
| [Service]
 | |
| Type=simple
 | |
| User=nobody
 | |
| Group=nogroup
 | |
| Environment="PATH=/opt/ejabberd-tools/venv/bin:/usr/local/bin:/usr/bin:/bin"
 | |
| ExecStart=/opt/ejabberd-tools/influx.py
 | |
| WorkingDirectory=/opt/ejabberd-tools/
 | |
| PrivateDevices=true
 | |
| ProtectControlGroups=true
 | |
| ProtectHome=true
 | |
| ProtectKernelTunables=true
 | |
| ProtectKernelModules=yes
 | |
| ProtectSystem=full
 | |
| NoNewPrivileges=yes
 | |
| Restart=always
 | |
| RestartSec=5s
 | |
| 
 | |
| [Install]
 | |
| WantedBy=multi-user.target
 |