Windfree poller application & jenkins pipeline
This commit is contained in:
26
deploy/smartthings-windfree-oauth.service
Normal file
26
deploy/smartthings-windfree-oauth.service
Normal file
@@ -0,0 +1,26 @@
|
||||
[Unit]
|
||||
Description=SmartThings WindFree OAuth linking helper
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=smartthings-poller
|
||||
Group=smartthings-poller
|
||||
EnvironmentFile=/etc/smartthings-windfree/oauth-secrets
|
||||
ExecStart=/opt/smartthings-windfree/venv/bin/smartthings-windfree-oauth --config /etc/smartthings-windfree/oauth.toml
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
StateDirectory=smartthings-windfree
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectKernelModules=true
|
||||
ProtectControlGroups=true
|
||||
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
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