Executing user script on startup - like "rc.local"
Re: Executing user script on startup - like "rc.local" #2
Re: Executing user script on startup - like "rc.local" #3
Re: Executing user script on startup - like "rc.local" #4
Posted 25 March 2014 - 23:31
HI, I have a little problem with script startup on boot.
I need to start one simple script and your directions are not working well on my VU+ Solo2.
Would you please help?
I placed script in /etc/init.d
chmod 777 script_name.sh
then in /etc/rc3.d
ln -s /etc/init.d/script_name.sh /etc/rc3.d/S01script_name.sh
after restart VU nothing happens...
when I check if my script is ok I can run it without any problem from console with command... (and it does what it supose to do)
/etc/init.d/script_name.sh
Any ideas? probably something simple I missed...
Marcin
VU+Solo2
OpenPLi 7.0
Re: Executing user script on startup - like "rc.local" #5
Re: Executing user script on startup - like "rc.local" #6
Posted 26 March 2014 - 09:53
Direct your script's output to a file (e.g. in /tmp/) so you can read what went wrong. You can do this by running a second script that just runs the actual script with output redirection.
Re: Executing user script on startup - like "rc.local" #7
Re: Executing user script on startup - like "rc.local" #8
Re: Executing user script on startup - like "rc.local" #9
Re: Executing user script on startup - like "rc.local" #10
Posted 26 March 2014 - 21:22
Hi mattiL,
This is what i did. I have the same variables as yours.
I tried to create symlink the way suggested by MiLo and it worked...
ln -s ../init.d/script_name.sh /etc/rc3.d/S01script_name.sh
but still dont understand whats the difference...
Thank MiLo and MattiL
All is working fine now.
Marcin
VU+Solo2
OpenPLi 7.0
Re: Executing user script on startup - like "rc.local" #11
Posted 30 September 2014 - 22:37
HI All,
It sudenly stopped working...
Anybody can help me please?
I removed symlink from rc3.d , and I made a new one...
checked for HOME & PATH - all is ok.
nothing works......
and again... if i run script in telnet command it works as it should...
Please advise.
M
VU+Solo2
OpenPLi 7.0
Re: Executing user script on startup - like "rc.local" #12
Posted 30 May 2018 - 15:04
Is "at" command supported in Openpli?
I want to run script 1 minute after start up so I would use "at" command rather than "sleep" cause sleep command just delaying boot.
For example
$ at now + 1 minutes at> echo "Hello world" >
But seems to me that "at" is not supported in OpenPli....
Re: Executing user script on startup - like "rc.local" #13
Posted 30 May 2018 - 15:30
No, it isn't.
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Re: Executing user script on startup - like "rc.local" #14
Re: Executing user script on startup - like "rc.local" #15
Posted 30 May 2018 - 16:56
<path>/script_name &
This don’t delay the boot as the script is executed in background.
Edited by betacentauri, 30 May 2018 - 16:56.
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users