Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
For the 1st case do i have to put it inside rc.local ?
or "chkconfig --add deamon_x ?
For the 2nd case i put the line "xpto.sh &"
inside rc.local but this command gives me no linux user prompt, after the machine starts.
(i tested the script before and is o.k.)
I would think starting the daemon from rc.local would be the way to go.
As for the shell script, what do you mean it doesn't give you a prompt? Are you booting into CLI or X? What sort of prompt are you looking for? Remember, you have to log in before doing any work which could be where you're problem is coming from if I am understanding this correctly.
Ok, so you havre to hit the enter key in order to see your log in prompt. I don't know what your shell script is supposed to be doing but I suspect it's the "&". Try removing it and see if that corrects the problem.
Ok, what exactly does this cript do? Perhaps there's a problem in that script that only shows when called during boot? Some scripts are just not going to work properly if executed prior to logging in.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.