1
0
Fork 0

Add mbsync service and timer units

This commit is contained in:
coderkun 2020-03-01 14:01:47 +01:00
parent 879bfb6e3d
commit a3f702083a
3 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,11 @@
[Unit]
Description=mbsync Sync
After=network.target
[Service]
Type=oneshot
ExecStart=/usr/bin/mbsync --all
ExecStartPost=/home/oliver/Dokumente/Coding/scripts/mail-notify.py -v
TimeoutStartSec=1min30s
StandardOutput=syslog
StandardError=syslog

10
systemd/user/mbsync.timer Normal file
View file

@ -0,0 +1,10 @@
[Unit]
Description=mbsync sync timer
Conflicts=mbsync9to5.timer
[Timer]
OnCalendar=*:0/5
Unit=mbsync.service
[Install]
WantedBy=default.target

View file

@ -0,0 +1,10 @@
[Unit]
Description=mbsync sync timer
Conflicts=mbsync.timer
[Timer]
OnCalendar=8..17:0/5
Unit=mbsync.service
[Install]
WantedBy=default.target