3 # Provides: sipb-xen-console
4 # Required-Start: $local_fs $remote_fs
5 # Required-Stop: $local_fs $remote_fs
6 # Default-Start: 2 3 4 5
8 # Short-Description: sipb-xen Console Server homedir filesystem
12 # Author: SIPB Xen Project <sipb-xen@mit.edu>
16 # PATH should only include /usr/* if it runs after the mountnfs.sh script
17 PATH=/sbin:/usr/sbin:/bin:/usr/bin
18 DESC="The sipb-xen database server"
19 NAME=sipb-xen-database-server
23 SCRIPTNAME=/etc/init.d/$NAME
25 # Exit if the package is not installed
26 [ -x "/usr/bin/sipb-xen-database-tabales" ] || exit 0
28 # Read configuration variable file if it is present
29 [ -r /etc/default/$NAME ] && . /etc/default/$NAME
31 # Load the VERBOSE setting and other rcS variables
34 # Define LSB log_* functions.
35 # Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
36 . /lib/lsb/init-functions
40 for i in /etc/postgresql/8.3/main/pg_hba.conf
42 mako-render $i.mako > $i
54 [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
60 log_daemon_msg "Reloading $DESC" "$NAME"
72 echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2