3 # Provides: sipb-xen-database-server
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 database server
12 PACKAGE=sipb-xen-database-server
14 # Exit if the package is not installed
15 [ -x "/usr/bin/sipb-xen-database-tables" ] || exit 0
18 . /lib/lsb/init-functions
22 for i in /etc/postgresql/8.3/main/pg_hba.conf
23 do mako-render $i.mako > $i
28 start|reload|force-reload|restart)
29 log_begin_msg "Reloading config for $PACKAGE"
32 /etc/init.d/postgresql-8.3 "$1"
37 log_success_msg "Usage: /etc/init.d/$PACKAGE {start|reload|force-reload|restart|stop}"