All pastes #988919 Raw Edit

Mine

public text v1 · immutable
#988919 ·published 2008-04-17 23:46 UTC
rendered paste body
#!/bin/sh -e

### BEGIN INIT INFO
# Provides:		postgresql postgresql-8.2
# Required-Start:	$local_fs $network $time
# Required-Stop:	$local_fs $network $time
# Should-Start:		$syslog $remote_fs
# Should-Stop:		$syslog $remote_fs
# Default-Start:	2 3 4 5
# Default-Stop:		S 0 1 6
# Short-Description:	PostgreSQL 8.2 RDBMS server
### END INIT INFO

# Setting environment variables for the postmaster here does not work; please
# set them in /etc/postgresql/8.2/<cluster>/environment instead.

[ -r /usr/share/postgresql-common/init.d-functions ] || exit 0

. /usr/share/postgresql-common/init.d-functions

VERSION=8.2

case "$1" in
    start)
        start $VERSION
        ;;
    stop)
        stop "$VERSION"
        ;;
    restart)
	restart "$VERSION"
        ;;
    force-reload | reload)
        reload $VERSION
        ;;
    status)
        status $VERSION
	;;
    autovac-start)
	autovac_start $VERSION
	;;
    autovac-stop)
	autovac_stop $VERSION
	;;
    autovac-restart)
	autovac_restart $VERSION
	;;
    *)
        echo "Usage: $0 {start|stop|restart|reload|force-reload|status|autovac-start|autovac-stop|autovac-restart}"
        exit 1
        ;;
esac

exit 0