as flask without docker
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
[Unit]
|
||||
Description=Philips Hue RRD collector and dashboard
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
DynamicUser=yes
|
||||
StateDirectory=hue-collector
|
||||
WorkingDirectory=/srv/service_hue_collector
|
||||
EnvironmentFile=/srv/service_hue_collector
|
||||
Environment=DATA_DIR=/var/lib/hue-collector
|
||||
ExecStart=/var/lib/hue-collector/.venv/bin/python3 -m hue_collector
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
PrivateTmp=yes
|
||||
ProtectSystem=strict
|
||||
ProtectHome=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user