Add machines-start to install script and README

This commit is contained in:
Alexandre CATTEAU 2024-02-21 10:40:40 +01:00
parent db1c347c8a
commit 11d0afcead
2 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ All running Nspawn containers are stopped, snapshoted (using Btrfs subvolumes) a
* `variables.conf.template` contains examples variables definitions, and should be copied locally to `variables.conf`
(with any required modifications).
* `systemd-templates/` contains Systemd units templates for running the scripts unattended.
* specifically, `machines-start.timer` is a daily permanent trigger to start all enabled containers.
#### Installation
* `install.sh` script copies Systemd templates to their destination, and enables conts-snap and docker-upgrade timer.

View File

@ -31,6 +31,7 @@ echo "Reloading Systemd..."
$sudo systemctl daemon-reload
echo "Enabling timer(s) (not starting it, either do it manually or reboot)..."
$sudo systemctl enable conts-snap.timer
$sudo systemctl enable machines-start.timer
if [ $docker -eq 1 ]; then
$sudo systemctl enable docker-upgrade.timer
fi