systemd: Add timers and services to keep git repos up-to-date
Yes, systemd. In my user repo. It's awesome.
This commit is contained in:
parent
f118c9420d
commit
a3f24f4b79
|
@ -0,0 +1,9 @@
|
|||
# vim:ft=systemd:
|
||||
[Unit]
|
||||
Description=Dotfile fetch service
|
||||
|
||||
[Service]
|
||||
ExecStart=git --git-dir=%h/.dotfiles/ --work-tree=%h fetch
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
|
@ -0,0 +1,11 @@
|
|||
# vim:ft=systemd:
|
||||
[Unit]
|
||||
Description=Dot fetch timer
|
||||
|
||||
[Timer]
|
||||
Persistent=true
|
||||
OnBootSec=15min
|
||||
OnCalendar=*-*-* 22:00:00
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
|
@ -0,0 +1,9 @@
|
|||
# vim:ft=systemd:
|
||||
[Unit]
|
||||
Description=Project fetch service
|
||||
|
||||
[Service]
|
||||
ExecStart=find %h/Projects -type d -iname .git -execdir git fetch \;
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
|
@ -0,0 +1,11 @@
|
|||
# vim:ft=systemd:
|
||||
[Unit]
|
||||
Description=Project fetch timer
|
||||
|
||||
[Timer]
|
||||
Persistent=true
|
||||
OnBootSec=15min
|
||||
OnCalendar=*-*-* 23:00:00
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
Loading…
Reference in New Issue