summaryrefslogtreecommitdiff
blob: 0bedf82511c1b686a5cdfd8a0a7f012ae1242058 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/files/firebird.init.d.2,v 1.1 2007/09/21 02:15:04 wltjr Exp $

 
#  NOTE: make sure you have localhost in your hosts.equiv file see next 2 
#  lines for example of hosts.equiv contents
#localhost.localdomain
#localhost


export FIREBIRD
export ISC_USER
export ISC_PASSWORD
export FBRunUser
MANAGER=/usr/bin/fbmgr.bin

depend() {
	need net
}

start(){
	ebegin "Starting Firebird server"
	su $FBRunUser -c "${MANAGER} -start -forever"
	eend $?
}

stop(){
	ebegin "Stopping Firebird server"
	$MANAGER -shut
	eend $?
}