Persze.
Startup képernyőn írja, hogy Starting Postgres sikerelnül.
start script:
usage()
{
echo "usage: $0 <start|stop|status>"
}
case $1 in
start)
echo "Starting PostgreSQL server"
/usr/bin/pg_ctl start -w -D /opt/pgsql/data -o "-p 5432 -d 0" -l /opt/pgsql/log.log
;;
stop)
/usr/bin/pg_ctl stop -w -D /opt/pgsql/data -m immediate
;;
status)
/usr/bin/pg_ctl status -D /opt/pgsql/data
;;
*)
echo "Bruhhaha"
usage
esac
init script:
# chkconfig: 345 94 06
# description: postgres start/stop
#
# postgress db startup/shutdown script
#
usage()
{
echo "Usage: $0 <start|stop|status>"
}
if [ $# -ne 1 ]
then
usage
exit 1
fi
case $1 in
start)
runuser -l postgres -c "/maintenance/postgres_init.sh start"
touch /var/lock/subsys/Postgres
;;
stop)
su - postgres -c "/maintenance/postgres_init.sh stop"
;;
status)
su - postgres -c "/maintenance/postgres_init.sh status"
;;
*)
usage
;;
esac
logfileban semmi még akkor sem ha -d 5 adok neki ...
Ha átadod a tudásod neked attól még nem lesz kevesebb belőle..