summaryrefslogtreecommitdiff
blob: df816bdd711d13a97da9a4d2a4dc1fa4e688a052 (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
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/monetdb/files/monetdb.init-5.2.0,v 1.1 2007/11/06 10:44:07 grobian Exp $

depend() {
	use net
}

start() {
	ebegin "Starting MonetDB/SQL"
	# -b can go away next release, hopefully, see:
	# http://sourceforge.net/tracker/index.php?func=detail&aid=1825922&group_id=56967&atid=482471
	start-stop-daemon --start \
		-c $MDB_USER:$MDB_GROUP \
		-b \
		-m -p /var/run/merovingian \
		--exec /usr/bin/merovingian
	eend $?
}

stop() {
	ebegin "Stopping MonetDB/SQL"
	start-stop-daemon --stop \
		-c $MDB_USER:$MDB_GROUP \
		-p /var/run/merovingian \
		--exec /usr/bin/merovingian
	eend $?
}