ipwatch
This commit is contained in:
26
mqtt/systemd/ipwatch-mqtt-agent.service
Normal file
26
mqtt/systemd/ipwatch-mqtt-agent.service
Normal file
@@ -0,0 +1,26 @@
|
||||
[Unit]
|
||||
Description=IPWatch MQTT Agent
|
||||
After=network.target mosquitto.service
|
||||
Wants=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
ExecStart=/usr/bin/python3 /usr/local/bin/ipwatch_mqtt_agent.py
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
# Logs
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=ipwatch-mqtt-agent
|
||||
|
||||
# Sécurité
|
||||
PrivateTmp=yes
|
||||
NoNewPrivileges=false
|
||||
ProtectSystem=strict
|
||||
ProtectHome=read-only
|
||||
ReadWritePaths=/var/log
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user