add units to automatically sync notebook
This commit is contained in:
parent
04f823d585
commit
eeb29c3e70
3 changed files with 18 additions and 0 deletions
6
systemd/.config/systemd/user/syncnotebook.service
Normal file
6
systemd/.config/systemd/user/syncnotebook.service
Normal file
|
@ -0,0 +1,6 @@
|
|||
[Unit]
|
||||
Description=Synchronize local notebook
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/home/bca/.local/bin/syncnotebook
|
11
systemd/.config/systemd/user/syncnotebook.timer
Normal file
11
systemd/.config/systemd/user/syncnotebook.timer
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Notebook synchronization timer
|
||||
|
||||
[Timer]
|
||||
OnBootSec=5m
|
||||
OnUnitActiveSec=5m
|
||||
Persistent=true
|
||||
Unit=syncnotebook.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
|
@ -0,0 +1 @@
|
|||
/home/bca/.config/systemd/user/syncnotebook.timer
|
Loading…
Add table
Reference in a new issue