I want to run a thing that may disrupt the system (or remote access to it) if something goes wrong (for example, misconfiguration).
To reduce problems I want to have a "grace period" after the system already started, but before "dangerous" service started.
Requirements:
- Delay is applied only on automatic starting of the initscript, not when I
/etc/init.d/whatever startmanually; - The script is not started until its dependencies are ready (according to usual rules in initscript headers);
- Boot process should go on, without waiting for the full timeout.
How to do it more or less cleanly?
Related: https://superuser.com/questions/460112/how-do-i-run-a-script-5mn-after-startup