blob: c54cde70d565e672dd212bea6056c599891fb9c6 (
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
|
#!/sbin/openrc-run
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
depend() {
need net
}
start_pre() {
checkpath -d -o $FBUSER "$(dirname $PIDFILE)"
}
start(){
ebegin "Starting Firebird server"
start-stop-daemon --start --pidfile $PIDFILE --user $FBUSER --group $FBGROUP --exec $FBGUARD -- $FB_OPTS
eend $?
}
stop(){
ebegin "Stopping Firebird server"
start-stop-daemon --stop --name fbguard
eend $?
}
restart(){
svc_stop
sleep 1
svc_start
}
|