Skip to content

Commit

Permalink
Replace scripts in systemd with symlinks
Browse files Browse the repository at this point in the history
This way the actual files reside in the appropriate folders
  • Loading branch information
jcjgraf committed Sep 19, 2023
1 parent 131b0a8 commit 8d042cf
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 23 deletions.
2 changes: 1 addition & 1 deletion CalCard/dav_syncer.service
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 5 additions & 0 deletions CalCard/dav_syncer.startup
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

source /home/jeanclaude/.config/zsh/.zprofile
export GPG_TTY=$(tty)
/home/jeanclaude/Dotfiles/CalCard/sync.sh
6 changes: 6 additions & 0 deletions Mail/mbsync.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Unit]
Description=Mailbox syncronisation service

[Service]
Type=oneshot
ExecStart=/home/jeanclaude/.config/systemd/user/mbsync.startup
5 changes: 5 additions & 0 deletions Mail/mbsync.startup
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

source /home/jeanclaude/.config/zsh/.zprofile
export GPG_TTY=$(tty)
/home/jeanclaude/bin/mailChecker.sh -c
10 changes: 10 additions & 0 deletions Mail/mbsync.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=Mailbox synchronization timer

[Timer]
OnBootSec=2m
OnUnitActiveSec=5m
Unit=mbsync.service

[Install]
WantedBy=timers.target
1 change: 1 addition & 0 deletions systemd/user/dav_syncer.service
1 change: 1 addition & 0 deletions systemd/user/dav_syncer.startup
1 change: 1 addition & 0 deletions systemd/user/dav_syncer.target.wants/dav_syncer.timer
1 change: 1 addition & 0 deletions systemd/user/dav_syncer.timer
6 changes: 0 additions & 6 deletions systemd/user/mbsync.service

This file was deleted.

1 change: 1 addition & 0 deletions systemd/user/mbsync.service
5 changes: 0 additions & 5 deletions systemd/user/mbsync.startup

This file was deleted.

1 change: 1 addition & 0 deletions systemd/user/mbsync.startup
10 changes: 0 additions & 10 deletions systemd/user/mbsync.timer

This file was deleted.

1 change: 1 addition & 0 deletions systemd/user/mbsync.timer
1 change: 0 additions & 1 deletion systemd/user/timers.target.wants/vdirsyncer.timer

This file was deleted.

0 comments on commit 8d042cf

Please sign in to comment.