[pkg-firebird-general] *-init fixes + renaming an init target
Tamas TEVESZ
ice at extreme.hu
Sun Mar 4 08:09:59 CET 2007
gang,
two trivial diffs below to make the init scripts a bit more robust.
another point: currently, both branches have a target called
"shutdown" in their init scripts, which technically is an
"i'm-oh-so-gonna-kill-you"-kind of operation.
i'm strongly opposed to calling this target "shutdown", which, since
fbmgr has a "shutdown" switch, might to some suggest that this is a
graceful shutdown with fbmgr having been called, while this certainly
is not the case, not even if fbserver/fbguard react the same way to
sigterm as to `fbmgr -shut' (which i have not checked).
`kill' or maybe `force-stop' looks more acceptable to me. `kill' i
like better, since essentially this is what it does...
Index: debian/firebird1.5-super.init
===================================================================
--- debian/firebird1.5-super.init (revision 997)
+++ debian/firebird1.5-super.init (working copy)
@@ -49,7 +49,7 @@
ISC_USER=sysdba
ISC_PASSWORD=masterkey
-[ -f "$DBAPasswordFile" ] && . "$DBAPasswordFile"
+[ -r "$DBAPasswordFile" ] && . "$DBAPasswordFile"
export ISC_USER
export ISC_PASSWORD
Index: debian/firebird2.0-super.init
===================================================================
--- debian/firebird2.0-super.init (revision 997)
+++ debian/firebird2.0-super.init (working copy)
@@ -49,7 +49,7 @@
ISC_USER=sysdba
ISC_PASSWORD=masterkey
-[ -f "$DBAPasswordFile" ] && . "$DBAPasswordFile"
+[ -r "$DBAPasswordFile" ] && . "$DBAPasswordFile"
export ISC_USER
export ISC_PASSWORD
--
[-]
mkdir /nonexistent
More information about the pkg-firebird-general
mailing list