Skip to content

Commit 649bd67

Browse files
author
sakhnik
committed
Add systemd timer to generate daily history
1 parent a85772d commit 649bd67

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

systemd/gallery-daily.service

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[Unit]
2+
Description=Prepare "this day in past years" gallery
3+
4+
[Service]
5+
Type=oneshot
6+
ExecStart=/usr/bin/python /home/sakhnik/work/shotwell-view/daily.py
7+
User=sakhnik
8+
Group=users

systemd/gallery-daily.timer

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Unit]
2+
Description=Generate "this day in past years" gallery daily
3+
4+
[Timer]
5+
OnCalendar=*-*-* 4:00:00
6+
Persistent=true
7+
8+
[Install]
9+
WantedBy=timers.target

0 commit comments

Comments
 (0)