Add mbsync service and timer units
This commit is contained in:
parent
879bfb6e3d
commit
a3f702083a
11
systemd/user/mbsync.service
Normal file
11
systemd/user/mbsync.service
Normal 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
10
systemd/user/mbsync.timer
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=mbsync sync timer
|
||||
Conflicts=mbsync9to5.timer
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*:0/5
|
||||
Unit=mbsync.service
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
10
systemd/user/mbsync9to5.timer
Normal file
10
systemd/user/mbsync9to5.timer
Normal 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
|
Loading…
Reference in a new issue