General discussion

Locked

Automatic startup of server application

By emagnuson ·
I just installed the Java sdk enterprise edition and want to get it to autostart on boot up. I know this is probably an easy one, but I can't figure it out. do I make a symbolic link in the init.d directory? a script? help is much appreciated.

This conversation is currently closed to new comments.

9 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Automatic startup of server application

by zbrain75 In reply to Automatic startup of serv ...

To start when the system boots put your startup command(s) in the file:
/etc/rc.d/rc.local
This is the last script file run every time the system boots.

If you would rather start it when a user logs in put the startup commands in the users homedirectory in the file:
/home/username/.bash_login
otherwise referred to as $HOME/.bash_login.

Collapse -

Automatic startup of server application

by emagnuson In reply to Automatic startup of serv ...

The question was auto-closed by TechRepublic

Collapse -

Automatic startup of server application

by hotfly In reply to Automatic startup of serv ...

Yup, putting it in the rc.local is a good idea.

Collapse -

Automatic startup of server application

by emagnuson In reply to Automatic startup of serv ...

The question was auto-closed by TechRepublic

Collapse -

Automatic startup of server application

by jpereira In reply to Automatic startup of serv ...

Put a startup script in the init.d directory and a symbolic link in the rc3.d (assuming run level 3 is your normal init state). The symbolic link should name SxxRestOfScriptName where xx is a two digit number which tells the system what order to run the scripts in (there will be loads of others in that directory already). Your startup script should take one parameter which will be either "start" "stop" or "restart". When the system enters init state 3 it'll run the script with "start" as theparameter, when it leaves init state 3, it'll run the script with "stop" as the parameter.

Collapse -

Automatic startup of server application

by emagnuson In reply to Automatic startup of serv ...

The question was auto-closed by TechRepublic

Collapse -

Automatic startup of server application

by jgreen In reply to Automatic startup of serv ...

After creating the script in init.d, you may want to look at the "update-rc" script, which will put the appropriate symbolic links into the proper rc#.d directories for startup/shutdown of your service.

Collapse -

Automatic startup of server application

by emagnuson In reply to Automatic startup of serv ...

The question was auto-closed by TechRepublic

Collapse -

Automatic startup of server application

by emagnuson In reply to Automatic startup of serv ...

This question was auto closed due to inactivity

Back to Linux Forum
9 total posts (Page 1 of 1)  

Operating Systems Forums