I have a few scripts:
script2.sh. I have these set up to run at boot time so that:
collection is set up by the following:
$ cp collection.sh /etc/init.d/ $ update-rc.d collection.sh defaults 99
If I run the collection.sh manually (i.e.
$ . /etc/init.d/collection.sh) then everything works as expected, but if I reboot or do a full shutdown and start the computer then collection.sh runs but start.sh never runs.
To clarify, here is an example of what each script looks like:
. /path/to/start.sh &
./script1.sh & ./script2.sh &
while : do #does some stuff here #yes this is an infinite loop done
I have print statements that have confirmed that
collection.sh starts (twice actually) and
start.sh never starts.
I have also confirmed, using
ps aux | grep collection.sh that
collection.sh does complete.