File: initscript.gentoo

package info (click to toggle)
scanbuttond 0.2.3.cvs20090713-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 484 kB
  • ctags: 506
  • sloc: ansic: 3,810; makefile: 151; sh: 72
file content (22 lines) | stat: -rwxr-xr-x 513 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
#!/sbin/runscript
# scanbuttond init script for Gentoo
# copy it to /etc/init.d/scanbuttond
#
# Copyright 2005 by Bernhard Stiftner
# Distributed under the terms of the GNU General Public License v2

depend() {
	need hotplug
}

start() {
	ebegin "Starting scanner button daemon"
	start-stop-daemon --chuid scanner:scanner --start --quiet --exec /usr/local/bin/scanbuttond
	eend $?
}

stop() {
	ebegin "Stopping scanner button daemon"
	start-stop-daemon --stop --quiet --exec /usr/local/bin/scanbuttond
	eend $?
}