Make invirt-database-server.postinst check whether the invirt user actually exists
[invirt/packages/invirt-database.git] / debian / invirt-database-server.init
1 #!/bin/bash
2 ### BEGIN INIT INFO
3 # Provides:          invirt-database-server
4 # Required-Start:    $local_fs $remote_fs
5 # Required-Stop:     $local_fs $remote_fs
6 # Default-Start:     2 3 4 5
7 # Default-Stop:      0 1 6
8 # Short-Description: Invirt database server
9 # Description:       
10 ### END INIT INFO
11
12 PACKAGE=invirt-database-server
13 PARENTPACKAGE=postgresql-8.3
14 GEN_FILES=/etc/postgresql/8.3/main/pg_hba.conf
15
16 dpkg -s "$PACKAGE" >/dev/null 2>/dev/null || exit 0
17
18 . /lib/init/config-init.sh
19 config_init "$1"