File: sqlgrey.gentoo

package info (click to toggle)
sqlgrey 1%3A1.8.0-5.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 568 kB
  • sloc: perl: 3,029; sh: 244; makefile: 79
file content (31 lines) | stat: -rwxr-xr-x 544 bytes parent folder | download | duplicates (4)
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/runscript
# Copyright 1999-2004 Lionel Bouton
# Distributed under the terms of the GNU General Public License v2

depend() {
	use logger
	before mta
	# pg_autovacuum waits for a fully started PostgreSQL
	after pg_autovacuum postgresql mysql
}

start() {
	ebegin "Starting SQLgrey"
	# SQLite puts files in the working directory
	cd ~sqlgrey
	sqlgrey -d
	eend $?
}

stop() {
	ebegin "Shutting down SQLgrey"
	sqlgrey -k
	eend $?
}

# hack: seems Net::Server doesn't set REUSEADDR on socket?
svc_restart() {
	svc_stop
	sleep 1
	svc_start
}