Go to the ETC folder then you need to edit the rc.local file then add the following;
/usr/local/bin/oscam -b -c /usr/local/etc/ &
exit 0
cheers
hannible
I am needing to add a start up script in a Ubuntu Oscam Server I am playing around with.
Done some searching here but it seems like finding a needle in a hay stack.
I am a bit of a Linux newbie so if someone could please post what this should look like and where it is placed that would be a great help
Look Here -> |
Go to the ETC folder then you need to edit the rc.local file then add the following;
/usr/local/bin/oscam -b -c /usr/local/etc/ &
exit 0
cheers
hannible
Last edited by Hannible; 28-05-11 at 02:01 PM.
Thanks Hannible
Just curious to understand this a little better - a am a newbie and learning on linux stuff
1.
"/usr/local/bin/oscam -b -c" --> this shows a path to oscam the "program" what does the "-b" and "-c" do?
2.
"/usr/local/etc/ &" ---> yes there is a path to the oscam files what does the "&" do
3.
exit 0 ---> ... I have no idea on this is for?
Just for my learning I think this would be nice to know...
Basically, it allows oscam to auto start on pc boot up, then exit on successful startup on oscam.
cheers
hannible
Last edited by Hannible; 28-05-11 at 09:44 PM.
-b says start in background & -c says take next argument as the configuration directory.
Run this command in the background.2.
"/usr/local/etc/ &" ---> yes there is a path to the oscam files what does the "&" do
Returns an exit state of zero - ie. a successful completion.3.
exit 0 ---> ... I have no idea on this is for?
checkitout (29-05-11),james9813 (31-05-11),stefki (09-06-11)
Bookmarks