18 lines
309 B
Django/Jinja
18 lines
309 B
Django/Jinja
[Unit]
|
|
Description=Montiroing.py
|
|
After=syslog.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
Group=root
|
|
WorkingDirectory=/opt/monitoring.py/
|
|
ExecStart=/opt/monitoring.py/run.py
|
|
SyslogIdentifier=monitoringpy
|
|
StandardOutput=syslog
|
|
StandardError=syslog
|
|
Restart=always
|
|
RestartSec=3
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|