add service unit file
This commit is contained in:
parent
917016d59d
commit
298a689545
13
ups-power.service
Normal file
13
ups-power.service
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=ups-power
|
||||||
|
After=multi-user.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
Restart=always
|
||||||
|
User=crate
|
||||||
|
WorkingDirectory=/home/crate/python/power
|
||||||
|
ExecStart=/usr/bin/python3 power.py
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user