Tiny Core Base > TCB Q&A Forum
lighttpd and bftpd won't bother running at startup
jrm7262:
Hello all,
I can get lighttpd running manually and at boot via bootlocal.sh
I can get bftpd running manually and at boot via bootloader.sh
But when I put them both in bootlocal.sh only whichever is first runs.
I can get them running together manually.
Tried with and without & and &&.
Any ideas on this odd behaviour?
Perfectly open to the idea I'm missing something very simple.
Kindest regards
James ❤️🖖
ovacikar:
bootlocal.sh runs commands as root
did you try forcing it to run as tc user?
--- Code: ---sudo -u tc mycommand
--- End code ---
GNUser:
Strange problems like this are sometimes due to a race condition. Does adding sleep 1 to bootlocal.sh (between lighttpd and bftpd) help?
jrm7262:
Thank you for the replies.
I will try sleep (and wait).
How do I force bootlocal to run a command as tcuser?
J❤️🖖
ovacikar:
by prepending sudo -u tc ... to the command
Navigation
[0] Message Index
[#] Next page
Go to full version