Replace scripts in systemd with symlinks

This way the actual files reside in the appropriate folders
This commit is contained in:
Jean-Claude 2023-09-19 09:04:51 +02:00
parent 131b0a87e3
commit 8d042cf2a7
Signed by: jeanclaude
GPG Key ID: 8A300F57CBB9F63E
13 changed files with 34 additions and 23 deletions

View File

@ -3,4 +3,4 @@ Description=CalDAV and CardDAV syncer
[Service]
Type=oneshot
ExecStart=/home/jeanclaude/Dotfiles/CalCard/sync.sh
ExecStart=/home/jeanclaude/.config/systemd/user/dav_syncer.startup

5
CalCard/dav_syncer.startup Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
source /home/jeanclaude/.config/zsh/.zprofile
export GPG_TTY=$(tty)
/home/jeanclaude/Dotfiles/CalCard/sync.sh

6
Mail/mbsync.service Normal file
View File

@ -0,0 +1,6 @@
[Unit]
Description=Mailbox syncronisation service
[Service]
Type=oneshot
ExecStart=/home/jeanclaude/.config/systemd/user/mbsync.startup

5
Mail/mbsync.startup Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
source /home/jeanclaude/.config/zsh/.zprofile
export GPG_TTY=$(tty)
/home/jeanclaude/bin/mailChecker.sh -c

10
Mail/mbsync.timer Normal file
View File

@ -0,0 +1,10 @@
[Unit]
Description=Mailbox synchronization timer
[Timer]
OnBootSec=2m
OnUnitActiveSec=5m
Unit=mbsync.service
[Install]
WantedBy=timers.target

View File

@ -0,0 +1 @@
../../CalCard/dav_syncer.service

View File

@ -0,0 +1 @@
../../CalCard/dav_syncer.startup

View File

@ -0,0 +1 @@
/home/jeanclaude/Dotfiles/CalCard/dav_syncer.timer

View File

@ -0,0 +1 @@
../../CalCard/dav_syncer.timer

View File

@ -1,6 +0,0 @@
[Unit]
Description=Mailbox syncronisation service
[Service]
Type=oneshot
ExecStart=/home/jeanclaude/.config/systemd/user/mbsync.startup

1
systemd/user/mbsync.service Symbolic link
View File

@ -0,0 +1 @@
../../Mail/mbsync.service

View File

@ -1,5 +0,0 @@
#!/bin/bash
source /home/jeanclaude/.config/zsh/.zprofile
export GPG_TTY=$(tty)
/home/jeanclaude/bin/mailChecker.sh -c

1
systemd/user/mbsync.startup Symbolic link
View File

@ -0,0 +1 @@
../../Mail/mbsync.startup

View File

@ -1,10 +0,0 @@
[Unit]
Description=Mailbox synchronization timer
[Timer]
OnBootSec=2m
OnUnitActiveSec=5m
Unit=mbsync.service
[Install]
WantedBy=timers.target

1
systemd/user/mbsync.timer Symbolic link
View File

@ -0,0 +1 @@
../../Mail/mbsync.timer

View File

@ -1 +0,0 @@
/home/jeanclaude/.config/systemd/user/vdirsyncer.timer