7
PidDir=/var/run/firebird
10
#------------------------------------------------------------------------
11
# Add new user and group
15
AdditionalParameter=$1
16
testStr=`grep firebird /etc/group`
20
groupadd $AdditionalParameter firebird
28
AdditionalParameter=$1
29
testStr=`grep firebird /etc/passwd`
33
useradd $AdditionalParameter -d $FBRootDir -s /bin/false \
34
-c "Firebird Database Owner" -g firebird firebird
42
TryAddGroup "-g 84 -r" >/dev/null 2>&1
43
TryAddGroup "-g 84" >/dev/null 2>&1
44
TryAddGroup "-r" >/dev/null 2>&1
47
TryAddUser "-u 84 -r" >/dev/null 2>&1
48
TryAddUser "-u 84" >/dev/null 2>&1
49
TryAddUser "-r" >/dev/null 2>&1
55
#------------------------------------------------------------------------
56
# print location of init script
58
getInitScriptLocation() {
59
if [ -f /etc/rc.d/init.d/firebird ]
61
echo -n /etc/rc.d/init.d/firebird
62
elif [ -f /etc/rc.d/rc.firebird ]
64
echo -n /etc/rc.d/rc.firebird
65
elif [ -f /etc/init.d/firebird ]
67
echo -n /etc/init.d/firebird
72
#------------------------------------------------------------------------
73
# stop super server if it is running
75
stopSuperServerIfRunning() {
76
checkString=`ps -eaf | egrep "\b(fbserver|fbguard)\b" |grep -v grep`
78
if [ ! -z "$checkString" ]
80
init_d=`getInitScriptLocation`
88
#-----------------------------------------------------------------------
89
# Blank stub on HPUX - don't use openssl
91
generateNewDBAPassword() {
92
echo "generateNewDBAPassword" >/dev/null 2>&1