summaryrefslogtreecommitdiff
path: root/ldr-counter.service
diff options
context:
space:
mode:
Diffstat (limited to 'ldr-counter.service')
-rw-r--r--ldr-counter.service5
1 files changed, 4 insertions, 1 deletions
diff --git a/ldr-counter.service b/ldr-counter.service
index 64c113c..495835d 100644
--- a/ldr-counter.service
+++ b/ldr-counter.service
@@ -3,6 +3,9 @@ Description=Read light level from LDR and store result in file
[Service]
Type=oneshot
-User=st33v
+User=root
# WorkingDirectory=/home/st33v/light/
ExecStart=/usr/local/bin/ldr-counter.py
+
+[Install]
+WantedBy=ldr-counter.timer