Restart Upstart Instances on System Reboot
A single Upstart job can have multiple instances running:
However, when the operating system reboots, the job with multiple instances will fail to start, due to instance information is not provided to the job. We can fix this problem by adding a
for loop in the
With this Upstart job, we do not need to provide instance information:
Therefore, during system restart, the job will initiate automatically.