🔐 add EnvironmentFile to systemd service
This commit is contained in:
parent
5900fec8ff
commit
9b79b004e5
3 changed files with 3 additions and 1 deletions
|
@ -4,6 +4,7 @@ Description=PowerMeter Service
|
|||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
EnvironmentFile=/etc/powermeter-environment
|
||||
ExecStart=/usr/local/bin/powermeter.py
|
||||
Restart=always
|
||||
RestartSec=30
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue