summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--[l---------]getpix.service11
-rw-r--r--[l---------]getpix.timer11
-rw-r--r--mote0
3 files changed, 20 insertions, 2 deletions
diff --git a/getpix.service b/getpix.service
index 905dce8..e2ca248 120000..100644
--- a/getpix.service
+++ b/getpix.service
@@ -1 +1,10 @@
-/etc/systemd/system/getpix.service \ No newline at end of file
+[Unit]
+Description=Retrieve photos from cam raspis, situated within LAN
+
+[Service]
+Type=simple
+User=st33v
+# prefix call to script with '-' to accept nonzero ('failed') exit status
+# I woulod prefer to know how to prevent the 'failure' in the first place.
+ExecStart=-/usr/local/bin/getpix.sh
+
diff --git a/getpix.timer b/getpix.timer
index 1cef692..4f7eec6 120000..100644
--- a/getpix.timer
+++ b/getpix.timer
@@ -1 +1,10 @@
-/etc/systemd/system/getpix.timer \ No newline at end of file
+[Unit]
+Description= check every minute
+
+[Timer]
+Persistent=true
+OnBootSec=1min
+OnCalendar=minutely
+
+[Install]
+WantedBy=timers.target
diff --git a/mote b/mote
deleted file mode 100644
index e69de29..0000000
--- a/mote
+++ /dev/null