2017-09-24 23:28:38 +09:00
|
|
|
[Unit]
|
|
|
|
Description=Air monitering Service
|
|
|
|
After=syslog.target
|
|
|
|
|
|
|
|
[Service]
|
2017-09-24 23:34:23 +09:00
|
|
|
WorkingDirectory=/opt/air_monitor
|
|
|
|
ExecStart=/opt/air_monitor/venv/bin/python run.py
|
2017-09-24 23:28:38 +09:00
|
|
|
TimeoutStartSec=5
|
|
|
|
User=nobody
|
|
|
|
Group=nobody
|
|
|
|
Restart=on-failure
|
|
|
|
KillSignal=SIGQUIT
|
|
|
|
Type=notify
|
|
|
|
StandardError=syslog
|
|
|
|
NotifyAccess=all
|
|
|
|
PrivateDevices=yes
|
|
|
|
PrivateTmp=yes
|
|
|
|
ProtectSystem=full
|
2017-09-24 23:34:23 +09:00
|
|
|
ReadWriteDirectories=/opt/air_monitor
|
|
|
|
ProtectHome=yes
|
2017-09-24 23:28:38 +09:00
|
|
|
NoNewPrivileges=yes
|
|
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|