Normally sysv init scripts are run at boot time (from /etc/init.d/rcS) with the 'start' argument. However they can also be invoked with the 'start' after boot, for exmaple when a service is stopped and then manually restarted.
Is there a "standard", generic way for an init script to differentiate between the first run (at boot) and subsequent runs? (other than manual solutions such as creating a file on the first run and checking for it on subsequent runs)
0 Answers