Add live btrfs snapshot updating role
This commit is contained in:
parent
60ad70a09f
commit
9ca982641a
7 changed files with 86 additions and 0 deletions
9
roles/autoupdate/files/frib_autoupdate.service
Normal file
9
roles/autoupdate/files/frib_autoupdate.service
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Update btrfs filesystems
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
Group=root
|
||||
Type=oneshot
|
||||
ExecStart=/home/partimag/fri_live_upgrade/frib_update.py
|
||||
|
12
roles/autoupdate/files/frib_autoupdate.timer
Normal file
12
roles/autoupdate/files/frib_autoupdate.timer
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=Frib Autoupdate Timer
|
||||
|
||||
|
||||
[Timer]
|
||||
OnBootSec=5m
|
||||
OnUnitActiveSec=30m
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
|
9
roles/autoupdate/files/rsync_ucilnicesmb_d.service
Normal file
9
roles/autoupdate/files/rsync_ucilnicesmb_d.service
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=rsync D:
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
Group=root
|
||||
Type=oneshot
|
||||
ExecStart=/bin/bash /mnt/ucilnice_d/skupno/porini_na_d.sh
|
||||
|
12
roles/autoupdate/files/rsync_ucilnicesmb_d.timer
Normal file
12
roles/autoupdate/files/rsync_ucilnicesmb_d.timer
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=Rsync D: timer
|
||||
|
||||
|
||||
[Timer]
|
||||
OnBootSec=5m
|
||||
OnUnitActiveSec=30m
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue