[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rc script not running at boot time



Hello,

I can run the following scripts manually;

[root ip-10-161-99-142 ~]# /etc/rc.d/rc3.d/S50pgstartstop start
server starting
[root ip-10-161-99-142 ~]# /etc/rc.d/rc3.d/S50pgstartstop stop
waiting for server to shut down.... done
server stopped
[root ip-10-161-99-142 ~]#
<snip>

However, upon reboot the service does not start.

Here is the script in /etc/init.d/pgstartstop;
<snip>
#! /bin/sh
case "$1" in
start) /usr/bin/pgstart ;;
stop) /usr/bin/pgstop ;;
restart) /bin/sh $0 stop
/bin/sh $0 start ;;
*) echo "Usage: $0 {start|stop}"
exit 1 ;;
esac
<snip>

The failure is not logged, so I can't figure out why it isn't starting.

Any and suggestions would be most welcome.

Thank you,

James






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]