summaryrefslogtreecommitdiff
path: root/games-util/xboxdrv/files/xboxdrv.initd
blob: 8602c7e12531a5eb1a907bc99a059f5b285a704f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/sbin/openrc-run
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

PIDFILE="/var/run/${SVCNAME}.pid"

start() {
	ebegin "Starting xboxdrv"
	start-stop-daemon --start --pidfile "${PIDFILE}" --exec /usr/bin/xboxdrv -- \
		--daemon --detach --pid-file "${PIDFILE}" ${XBOXDRV_OPTS}
	eend $?
}

stop() {
	ebegin "Stopping xboxdrv"
	start-stop-daemon --stop --pidfile "${PIDFILE}"
	eend $?
}