LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Logging in and running an application on start up (https://www.linuxquestions.org/questions/linux-newbie-8/logging-in-and-running-an-application-on-start-up-4175414189/)

macanucaire 06-30-2012 02:30 PM

Logging in and running an application on start up
 
I have a machine running Linux Version 2.6.12.6-arm1 which I use as a music server. We get frequent power cuts and I'd like to have the machine log in when I restart it and run the music server application.
Can it be done?
Tom

mahu_mahu 06-30-2012 11:24 PM

Try googling "linux auto login".
If your linux box uses PAM , then you should add "pam" to the searching word list.
For example , I found the page below
http://littlesvr.ca/linux-stuff/arti...ginconsole.php
I don't know if this link will work for you or not, though.

em31amit 07-01-2012 12:48 AM

there is no sense if your application not required any user input to start.

you can put the whole command into "/etc/rc.local" file. so whenever you boot your machine it will automatically start your application without login into system.



Code:

#cat /etc/rc.local

/path/to/my/application


smoker 07-01-2012 11:30 AM

If you check your bios there may be an option to resume state, so after a cut it will reboot. As others have described, set the music server to start on boot. User logins are irrelevant for servers.


All times are GMT -5. The time now is 01:57 PM.