Originally posted by webtoe
to get it loaded at startup you have to have a script in the /etc/rc.d/inet.d directory and then have a symlink in the appropriate directory in /etc/rc.d/rc.x
(where x is the runlevel you're talking about. it could be 4 or something.) im not overly sure since i use slack which has the scripts in a different place and in a different way.
someone here must know how things are arranged
Not *quite* right.. on the right path tho.
I seem to say this sooo many times
... and i really don't understand why people get told this info in the first place.... but..
inet.d is OLD and GONE. it was replaced by xinetd.d in nearly all distro a fair while ago.
Webtoe seems to have got init.d and inet.d confused, understanable i guess.
ok so what was refered to as /etc/rc.d/inet.d is actually /etc/init.d on your machine: MD80. that directory is just a symlink to
/etc/rc.d/init.d, but it's shorter.. so hey!
These scripts are not simple bash scripts, they are very standardised, and must contain functions such as start, stop, restart and such like to work properly, and are not easy to write yourself, unless you nick oen and hack it accordingly.
incidentally, runlevel 4 isn't used. you always use 3 or 5, maybe 2 if you're odd...
right, ok so to get you up and running, and also assuming that there IS a MyQSL startup script in /etc/init.d, then try somethign like:
ln -s /etc/init.d/MySQL /etc/rc3.d/S85mysql
ok, the 3 defines the runlevel, as you'ev probably sussed, so you want 3, or 5 if you boot straight to X. the S85 defines the priority of the system, there's S or K types, not totally sure what the difference is, but a level of around 85 will start it toward the end. doesn't matter if a service already has that number, it';s just a very low level approch to setting things an order.
IF there's no working script, then add whatever startup line you need to to /etc/rc.local.
having not used mysql extensively as a server, i'm a bit confused why you've got 'safe_mysql &' listed. The & is used to put a program into the background, and if that file loads a server then it MUST fork into the background of it's own accord, or... well, it's not really a server is it?
OK, my fingers hurt
ask more q's as and when