pve-manager/bin
Thomas Lamprecht ca0fc07dd4 fix #844: allow to pre-delay start-all-marked guests on boot
Add a simple ExecStartPre command which reads the local node config,
and if a delay is set the helper sleeps that long then exists.

The systemd-unit approach was chosen as this ensures that we really
only delay when doing the startall on node boot. The pve-guests
service does not allows manual stops, starts or restarts, it can only
be pulled in by the multi-user.target

Mark this command with "-" to tell systemd that errors of it should
not cause an abort, it's a best-effort approach.

The journal from a 2 second delay would look like:
> Nov 19 13:13:48 dev6 systemd[1]: Starting PVE guests...
> Nov 19 13:13:48 dev6 pve-startall-delay[2318]: Delaying on-boot 'startall' command for 2 second(s).
> ...
> Nov 19 13:13:50 dev6 pve-guests[2339]: <root@pam> starting task UPID:dev6:00000924:00000529:5DD3DC7E:startall::root@pam:

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-11-20 20:20:58 +01:00
..
.gitignore Extend the .gitignore(s) 2018-05-04 14:50:04 +02:00
Makefile fix #844: allow to pre-delay start-all-marked guests on boot 2019-11-20 20:20:58 +01:00
pve5to6 followups: pve5to6 2019-06-25 09:04:07 +02:00
pve-startall-delay fix #844: allow to pre-delay start-all-marked guests on boot 2019-11-20 20:20:58 +01:00
pveam Use run_cli_handler instead of deprecated run_cli 2017-10-18 15:32:52 +02:00
pvebanner use shorter login message 2013-06-17 11:22:33 +02:00
pveceph cleanup: use new run_cli_handler() method 2015-10-02 11:28:01 +02:00
pvedaemon cleanup: use new run_cli_handler() method 2015-10-02 11:28:01 +02:00
pvemailforward.c cleanup C wrapper 2013-03-25 17:47:33 +01:00
pvemailforward.pl use PVE::DataCenterConfig 2019-11-18 12:25:35 +01:00
pvenode add pvenode CLIHandler 2018-05-02 11:34:52 +02:00
pveperf pveperf: print errno on die if sensible 2019-01-31 13:50:37 +01:00
pveproxy cleanup: use new run_cli_handler() method 2015-10-02 11:28:01 +02:00
pvereport Move pvereport functionality into a separate PVE package 2015-11-03 18:10:22 +01:00
pvesh pvesh cleanup: use a handler class - PVE/CLI/pvesh.pm 2018-07-26 15:20:15 +02:00
pvesr pvesr: add pve storage replication tool 2017-05-31 08:23:46 +02:00
pvestatd pvestatd: log warnings to syslog 2016-10-26 15:58:23 +02:00
pvesubscription cleanup: use new run_cli_handler() method 2015-10-02 11:28:01 +02:00
pveupdate use PVE::DataCenterConfig 2019-11-18 12:25:35 +01:00
pveupgrade do not use -w switch as it breaks modules 2013-10-01 10:36:47 +02:00
pveversion do not use -w switch as it breaks modules 2013-10-01 10:36:47 +02:00
spiceproxy spiceproxy: import PVE::SafeSyslog 2017-01-26 12:59:57 +01:00
vzdump cleanup: use new run_cli_handler() method 2015-10-02 11:28:01 +02:00