Hi,
I'm installing postgresql from slackbuilds.org.
The README-file says that one should put the following lines into /etc/rc.local_shutdown
Code:
# Stop postgres
if [ -x /etc/rc.d/rc.postgresql ]; then
/etc/rc.d/rc.postgresql stop
fi
Since we don't have this file /etc/rc.d/rc.local_shutdown in Slackware I examinded the /etc/rc.d/rc.6 file in order to find out if I could put the code which stops the database there. I found the following lines in /etc/rc.d/rc.local_shutdown
Code:
# Run any local shutdown scripts:
if [ -x /etc/rc.d/rc.local_shutdown ]; then
/etc/rc.d/rc.local_shutdown stop
fi
This seems odd to me. I think that the script rc.local_shutdown should be called without a parameter (without stop), like rc.local?
I suppose that "stop" doesn't do anything, but probably it should be removed.
I've now created a rc.local_shutdown and removed the stop from rc.6
Markus