blob: 50519065f298abf8abb2de39c3732ab95c29b07f (
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-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/xe-guest-utilities/files/xe-daemon.initd,v 1.1 2014/06/23 14:30:35 robbat2 Exp $
depend() {
need localmount
after bootmisc
}
start() {
einfo "Detecting Linux distribution version"
/usr/sbin/xe-linux-distribution /var/cache/xe-linux-distribution
ebegin "Starting xe daemon"
start-stop-daemon --start --exec /usr/sbin/xe-daemon \
--pidfile /var/run/xe-daemon.pid \
--background \
-- -p /var/run/xe-daemon.pid
eend $?
}
stop() {
ebegin "Stopping xe daemon"
start-stop-daemon --stop --exec /usr/sbin/xe-daemon \
--pidfile /var/run/xe-daemon.pid
eend $?
}
|