On 18/05/06 18:24, Rick Schaeffer wrote:
Suse defaults to auto logging in the default user that you set up when installing. You can run an application from that user's ".profile". I've done that for an amusement park POS system that's running live now. Works fine. You can also use Yast to modify a user's login to be auto started at boot time if you prefer.
Rick Schaeffer It is generally regarded as not good policy to auto-login any user at startup, for obvious security reasons. There are, of course, exceptions, and a POS system would seem to be one of these. However, as a general rule, it is definitely not a good idea.
It is also not a good idea to start server-level processes in an ordinary user's startup; unless the process changes ownership (eg. postfix or xntpd), that user owns the process, and if he should ever log out, the process may be killed. Even if the process does attempt to change ownership, if it is owned by an ordinary user, that may not always be possible. What the OP wants to do is perfectly served by adding the necessary commands boot.local, or if dependent on being in a particular runlevel (eg. xntp) as a separate init script in /etc/init.d.
----- Original Message ----- From: "Carl Hartung"
To: Sent: Thursday, May 18, 2006 5:09 PM Subject: Re: [SLE] Running an application everytime the server boots... On Thursday 18 May 2006 19:48, Michael Stempf wrote:
I was wondering where is the best place to put the command to start an application everytime the server starts (even if no one has logged into the system).
Hi Michael,
Have a look at /etc/init.d/skeleton, which is a heavily commented script template designed to help you incorporate custom applications and services into the run level system.
hth & regards,
Carl