diff options
| -rw-r--r--[l---------] | getpix.service | 11 | ||||
| -rw-r--r--[l---------] | getpix.timer | 11 | ||||
| -rw-r--r-- | mote | 0 |
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 |
