I have changed the script in /etc/event.d/helloworld, to make it simpler, like this:
Code:
start on runlevel 2
console output
script
echo "helloworld" > /tmp/helloworld.out
date >> /tmp/helloworld.out
end script
And when I start the script manually
Code:
/home/user # start helloworld
(start) waiting
(start) starting
(start) pre-start
(start) spawned, process 1836
(start) post-start, (main) process 1836
(start) running, process 1836
(stop) running
(stop) stopping
(stop) killed
(stop) post-stop
(stop) waiting
/home/user #
After this the file /tmp/helloworld.out is created and says "helloworld" and the date. Then I remove it and reboot the phone, and check again, but there is no such file there.