Jump to content

Linux HELP


Mowgli1647545497

Recommended Posts

HELP

 

I've got a Linux box running Suse.

 

I've got mySql, tomcat, ftp, and a James server configured on it.

 

They run fine but I need to start them up manually. Want to get these to start at bootup time.

 

Can anyone help me out? Tried mySQL first, and of course the documentation and advice I get on the net doesn't work....

 

xinetd, rc.d, rc3.d .... BAH!

 

Help

Link to comment
Share on other sites

traditionally, in linux after the init loads, rc loads using the rc.local script

 

rc.local doesn't exsist in suse

 

create a file called rc.local in the /etc/rc.d directory

 

chmod 755 /etc/rc.d/rc.local

 

then go down to rc3.d and create a link to rc.local at say S90

 

eg ln -s ../rc.local ./S90rc.local

 

Repeat in ../rc2.d

 

now in the /etc/rc.d/rc.local file add the commands you want executed at boot

 

--------------

example file

 

#!/bin/sh

# /etc/rc.d/rc.local

#

# This script will be executed *after* all the other init scripts.

 

/sbin/insmod ip_tables

/sbin/modprobe ip_conntrack_ftp

/sbin/modprobe ip_nat_ftp

 

 

if you need any help with this let me know. i'd be happy to help you out.

Link to comment
Share on other sites

Did you install these as packages or build them yourself. You should ba able to use chkconfig to do the dirty work if they were packaged right.

 

chkconfig -list all

 

will list all of the availble programs. You can do a

 

chkconfig service on to bring it up in the default run levels definied in the init script, or if you only want specific levels like start mysql in run level 3

 

chkconfig mysql 3

 

If the packages aren't available under chkconfig you will have to write your own init scripts and link them accordingly to the right rc directory to get everything working right.

 

Are you running tomcat stand alone or through an apache jk connector? That will also make a difference in how its started up.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...