Use invoke-rc.d instead of calling init scripts directly in
[invirt/packages/invirt-database.git] / debian / invirt-database-server.postinst
index f6615e5..79fe70c 100644 (file)
@@ -35,7 +35,7 @@ case "$1" in
             su postgres -c 'createdb invirt -O invirt'   || true
             adduser --system invirt
         fi
-       /etc/init.d/postgresql-8.3 restart
+       invoke-rc.d postgresql-8.3 restart
         su invirt -s /bin/sh -c 'invirt-database-tables create'
     ;;