add systemd services

This commit is contained in:
Bruno Carlin 2017-02-20 16:19:59 +01:00
parent 45d471ce7e
commit b2cdaa8ab7
3 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,10 @@
[Unit]
Description=SSH key agent
[Service]
Type=forking
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK
[Install]
WantedBy=default.target

View file

@ -0,0 +1,6 @@
[Unit]
Description=Synchronize local cache for IMAP accounts
[Service]
Type=oneshot
ExecStart=/home/bca/.local/bin/syncemail

View file

@ -0,0 +1,10 @@
[Unit]
Description=Mailbox synchronization timer
[Timer]
OnCalendar=*-*-* *:00/2:00
Persistent=true
Unit=syncemail.service
[Install]
WantedBy=timers.target