pve-manager/services
Thomas Lamprecht 1ff3fef0b0 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
..
ceph-after-pve-cluster.conf cleanup: rename bin/init.d to services 2018-06-20 13:04:51 +02:00
Makefile ceph: remove obsolete ceph.service and do not distribute it anymore 2019-07-04 17:09:48 +02:00
pve-daily-update.service cleanup: rename bin/init.d to services 2018-06-20 13:04:51 +02:00
pve-daily-update.timer cleanup: rename bin/init.d to services 2018-06-20 13:04:51 +02:00
pve-guests.service fix #844: allow to pre-delay start-all-marked guests on boot 2019-11-20 20:20:58 +01:00
pve-storage.target ceph: remove obsolete ceph.service and do not distribute it anymore 2019-07-04 17:09:48 +02:00
pvebanner.service cleanup: rename bin/init.d to services 2018-06-20 13:04:51 +02:00
pvedaemon.service service: add restart on-failure to pveproxy and pvedaemon 2019-06-05 08:48:01 +02:00
pvenetcommit cleanup: rename bin/init.d to services 2018-06-20 13:04:51 +02:00
pvenetcommit.service cleanup: rename bin/init.d to services 2018-06-20 13:04:51 +02:00
pveproxy.service pveproxy.service: take over pvecm call from pve-cluster.service 2019-11-18 12:25:35 +01:00
pvesr.service cleanup: rename bin/init.d to services 2018-06-20 13:04:51 +02:00
pvesr.timer cleanup: rename bin/init.d to services 2018-06-20 13:04:51 +02:00
pvestatd.service services; update 'PIDFile' to point directly to /run 2019-05-26 11:03:29 +02:00
spiceproxy.service services; update 'PIDFile' to point directly to /run 2019-05-26 11:03:29 +02:00