Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env sh
# It's a reference about what to do after freshly installing Ubuntu 12.04 desktop amd64.
# It's MY note and it suit me.
# Though I note the process down here as a ".sh" file,
# you SHOULD check it first or copy-and-paste the useful sections into your terminal
# to ensure the availability.
# I am NOT GUARANTEE the availability of this file (note)
# or I am not responsible for your lost if you follow this note.
# It's for amd64 only, not i386, though most of the codes should meet no problems in i386.
#!/bin/bash
set -e
# Usage:
# rsync_parallel.sh [--parallel=N] [rsync args...]
#
# Options:
# --parallel=N Use N parallel processes for transfer. Defaults to 10.
#
# Notes:
description "PostgreSQL 9.1 Server"
author "PostgreSQL"
start on runlevel [2345]
stop on runlevel [016]
expect fork
respawn
env POSTGRESQL_HOME="/var/lib/postgresql/9.1/main"