Running it as root at startup with SManager works, but I would really prefer to bypass a 3rd-party app.
My script doesn't seem to be loading at boot; it should create a PID file in my /sdcard folder, but it doesn't. Without knowing the PID, I have no way of verifying whether or not it's even running.
#!/system/bin/sh (while [it's a never-ending loop]...do [stuff]; busybox sleep 900s...done) & echo $! > /sdcard/myscript.pid &
on boot sh /system/bin/myscript.sh
service myscript(*I also tried "myscript_boot") /system/bin/myscript.sh user root (*also tried it without the user command) oneshot (*and without oneshot)
Since I can't find any conclusive documentation on this issue. I hope someone here can shed some insight.
# Editing init.rc
# Tried following this article to edit/flash the boot image, but I don't have "/proc/mtd"
# A neglected post very similar to mine
# Another neglected post which addresses this issue