I'm installing postgresql from slackbuilds.org.
The README-file says that one should put the following lines into /etc/rc.local_shutdown
# Stop postgres
if [ -x /etc/rc.d/rc.postgresql ]; then
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
# Run any local shutdown scripts:
if [ -x /etc/rc.d/rc.local_shutdown ]; then
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