add systemd services
This commit is contained in:
parent
45d471ce7e
commit
b2cdaa8ab7
3 changed files with 26 additions and 0 deletions
10
systemd/.config/systemd/user/ssh-agent.service
Normal file
10
systemd/.config/systemd/user/ssh-agent.service
Normal 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
|
6
systemd/.config/systemd/user/syncemail.service
Normal file
6
systemd/.config/systemd/user/syncemail.service
Normal file
|
@ -0,0 +1,6 @@
|
|||
[Unit]
|
||||
Description=Synchronize local cache for IMAP accounts
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/home/bca/.local/bin/syncemail
|
10
systemd/.config/systemd/user/syncemail.timer
Normal file
10
systemd/.config/systemd/user/syncemail.timer
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Mailbox synchronization timer
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* *:00/2:00
|
||||
Persistent=true
|
||||
Unit=syncemail.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Loading…
Add table
Reference in a new issue