diff --git a/pi/powerpi.service b/pi/powerpi.service new file mode 100644 index 0000000..3d48848 --- /dev/null +++ b/pi/powerpi.service @@ -0,0 +1,12 @@ +# Systemd unit file for powerpi + +[Unit] +Description=PowerPi - Electric Energy Consumption Monitor +Requires=network-online.target + +[Service] +Type=simple +ExecStart=/srv/powerpi/power.py + +[Install] +WantedBy=multi-user.target