summaryrefslogtreecommitdiff
path: root/extra/postgresql
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-04-03 13:57:40 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-04-03 13:57:40 -0300
commitcdd88c937bb1fd3bf6de0b847101524a2d5c9022 (patch)
tree3eeb67878db60db79eb21dc2232377e6b56a3add /extra/postgresql
parentb2e7dca27f9de046feecd59ecfc93cd17bca8356 (diff)
parentb618c3d0693aec564c6746238fd05d94e31d3b76 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/asciijump/PKGBUILD community/cairo-compmgr/PKGBUILD community/cwiid/PKGBUILD community/darcs/PKGBUILD community/gadmin-samba/PKGBUILD community/gstm/PKGBUILD community/haskell-dbus/PKGBUILD community/haskell-mmap/PKGBUILD community/lastfm-client/PKGBUILD community/libtar/PKGBUILD community/mget/PKGBUILD community/nexuiz/PKGBUILD community/pstreams/PKGBUILD community/pyglet/PKGBUILD community/python-html5lib/PKGBUILD community/python-pychm/PKGBUILD community/qoauth/PKGBUILD community/quilt/PKGBUILD community/stormbaancoureur/PKGBUILD community/winegame/PKGBUILD community/winestuff/PKGBUILD community/xdg-user-dirs/PKGBUILD core/libfetch/PKGBUILD extra/acpi/PKGBUILD extra/alex/PKGBUILD extra/allegro/PKGBUILD extra/capi4k-utils/PKGBUILD extra/erlang/PKGBUILD extra/ettercap/PKGBUILD extra/gftp/PKGBUILD extra/gimp-refocus/PKGBUILD extra/happy/PKGBUILD extra/haskell-cgi/PKGBUILD extra/haskell-deepseq/PKGBUILD extra/haskell-fgl/PKGBUILD extra/haskell-glut/PKGBUILD extra/haskell-haskell-src/PKGBUILD extra/haskell-html/PKGBUILD extra/haskell-hunit/PKGBUILD extra/haskell-opengl/PKGBUILD extra/haskell-parallel/PKGBUILD extra/haskell-platform/PKGBUILD extra/haskell-quickcheck/PKGBUILD extra/haskell-regex-base/PKGBUILD extra/haskell-regex-compat/PKGBUILD extra/haskell-regex-posix/PKGBUILD extra/haskell-stm/PKGBUILD extra/haskell-syb/PKGBUILD extra/haskell-xhtml/PKGBUILD extra/libnet/PKGBUILD extra/linux_logo/PKGBUILD extra/mailman/PKGBUILD extra/midori/PKGBUILD extra/ntrack/PKGBUILD extra/pwgen/PKGBUILD extra/qtcurve-gtk2/PKGBUILD extra/qtcurve-kde4/PKGBUILD extra/ristretto/PKGBUILD extra/rxvt-unicode/PKGBUILD extra/telepathy-sofiasip/PKGBUILD extra/tightvnc/PKGBUILD extra/vsftpd/PKGBUILD extra/windowmaker-crm-git/PKGBUILD libre/aufs2-libre/PKGBUILD libre/calibre-libre/PKGBUILD libre/calibre-libre/calibre-mount-helper libre/calibre-libre/calibre.install libre/calibre-libre/desktop_integration.patch libre/ffmpeg-libre/PKGBUILD mozilla-testing/iceweasel-libre/PKGBUILD mozilla-testing/iceweasel-libre/libre.patch mozilla-testing/iceweasel-libre/mozconfig ~lukeshu/openni-unstable/PKGBUILD
Diffstat (limited to 'extra/postgresql')
-rwxr-xr-xextra/postgresql/postgresql79
1 files changed, 0 insertions, 79 deletions
diff --git a/extra/postgresql/postgresql b/extra/postgresql/postgresql
deleted file mode 100755
index 2ff845f73..000000000
--- a/extra/postgresql/postgresql
+++ /dev/null
@@ -1,79 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-. /etc/conf.d/postgresql
-
-# Default PGROOT if it wasn't defined in the conf.d file
-PGROOT=${PGROOT:-/var/lib/postgres}
-PGLOG=${PGLOG:-/var/log/postgresql.log}
-PGCTL_BIN=/usr/bin/pg_ctl
-PGCTL_ARGS=(-D "$PGROOT/data" -l "$PGLOG" -s -w)
-[[ $PGOPTS ]] && PGCTL_ARGS+=(-o "$PGOPTS")
-
-postgres_init() {
- # initialization
- if [[ ! -d "$PGROOT/data" ]]; then
- mkdir -p "$PGROOT/data" && chown -R postgres:postgres "$PGROOT"
- su - postgres -c "/usr/bin/initdb $INITOPTS -D '$PGROOT/data'"
- fi
- if [[ ! -e "$PGLOG" ]]; then
- touch "$PGLOG"
- chown postgres "$PGLOG"
- fi
-}
-
-do_postgres() {
- su - postgres -c "'$PGCTL_BIN' $(printf '%q ' "${PGCTL_ARGS[@]}") $@"
-}
-
-case $1 in
- start)
- postgres_init
- stat_busy "Starting PostgreSQL"
- if do_postgres start; then
- add_daemon postgresql
- stat_done
- else
- stat_fail
- exit 1
- fi
- ;;
- stop)
- stat_busy "Stopping PostgreSQL"
- if do_postgres stop -m fast; then
- rm_daemon postgresql
- stat_done
- else
- stat_fail
- exit 1
- fi
- ;;
- reload)
- stat_busy "Reloading PostgreSQL"
- if do_postgres reload; then
- stat_done
- else
- stat_fail
- exit 1
- fi
- ;;
- restart)
- postgres_init
- stat_busy "Restarting PostgreSQL"
- if do_postgres restart -m fast; then
- add_daemon postgresql
- stat_done
- else
- stat_fail
- exit 1
- fi
- ;;
- status)
- stat_busy "Checking PostgreSQL status";
- ck_status postgresql
- ;;
- *)
- echo "usage: $0 {start|stop|reload|restart|status}"
- exit 1
-esac