Windfree poller application & jenkins pipeline
This commit is contained in:
22
deploy/smartthings-windfree.service
Normal file
22
deploy/smartthings-windfree.service
Normal file
@@ -0,0 +1,22 @@
|
||||
[Unit]
|
||||
Description=SmartThings WindFree status poller
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=smartthings-poller
|
||||
Group=smartthings-poller
|
||||
EnvironmentFile=-/etc/smartthings-windfree/secrets
|
||||
EnvironmentFile=-/etc/smartthings-windfree/oauth-secrets
|
||||
ExecStart=/opt/smartthings-windfree/venv/bin/smartthings-windfree-poller --config /etc/smartthings-windfree/config.toml
|
||||
Restart=on-failure
|
||||
RestartSec=15
|
||||
StateDirectory=smartthings-windfree
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user