[ Date Index ][
Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Robert Nowik wrote: > > I have created a startup script to start postgres automatically when my > computer is rebooted, however I am unsure of where to place it / how to > set it up. The script runs ok on a freebsd machine (I have placed it > in /usr/local/etc/rc.d/ for this). I am not sure what the equivelant is > on Redhat 8 though. I have tried putting it in /etc/rc.d and the > subsequent directories. /etc/init.d is where most scripts go, and then you create symbolic links at the relevant run level, for postgres you probably want it to start after everything else - so the initdefault entry in /etc/inittab will indicate where to put the starting link. This assumes it takes a "script start" "script stop" "script restart" type syntax, otherwise /etc/rc.local may be the way to go. > Do i have to alter /etc/inittab? No. As a general rule don't edit inittab unless you are confident what you are doing is the right thing, otherwise you may end up with a system that is difficult to boot, or rather minimalist at start-up. That isn't to say by putting a broken script in the startup directories you won't break things, but at least the fix is usually holding down the "i" key on boot, and saying "N" to running the broken script. -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE+rO4KGFXfHI9FVgYRAsgjAKCgrggJswAofr6ZzCc71mjK9JeIXwCaAgiU oyOsnpyUnHFkDptcKVehTrE= =VFA/ -----END PGP SIGNATURE----- -- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.