Add machines-start to install script and README
This commit is contained in:
parent
db1c347c8a
commit
11d0afcead
@ -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`
|
* `variables.conf.template` contains examples variables definitions, and should be copied locally to `variables.conf`
|
||||||
(with any required modifications).
|
(with any required modifications).
|
||||||
* `systemd-templates/` contains Systemd units templates for running the scripts unattended.
|
* `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
|
#### Installation
|
||||||
* `install.sh` script copies Systemd templates to their destination, and enables conts-snap and docker-upgrade timer.
|
* `install.sh` script copies Systemd templates to their destination, and enables conts-snap and docker-upgrade timer.
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ echo "Reloading Systemd..."
|
|||||||
$sudo systemctl daemon-reload
|
$sudo systemctl daemon-reload
|
||||||
echo "Enabling timer(s) (not starting it, either do it manually or reboot)..."
|
echo "Enabling timer(s) (not starting it, either do it manually or reboot)..."
|
||||||
$sudo systemctl enable conts-snap.timer
|
$sudo systemctl enable conts-snap.timer
|
||||||
|
$sudo systemctl enable machines-start.timer
|
||||||
if [ $docker -eq 1 ]; then
|
if [ $docker -eq 1 ]; then
|
||||||
$sudo systemctl enable docker-upgrade.timer
|
$sudo systemctl enable docker-upgrade.timer
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user