From faa73ed6451fef019557e2ff109ffb42b6c649c2 Mon Sep 17 00:00:00 2001 From: telegnom Date: Mon, 2 Oct 2017 11:44:55 +0200 Subject: [PATCH] [F] unitfile for systemd added --- pi/powerpi.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pi/powerpi.service 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