diff options
Diffstat (limited to 'app-emulation/xe-guest-utilities/files/xe-daemon.initd')
-rw-r--r-- | app-emulation/xe-guest-utilities/files/xe-daemon.initd | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app-emulation/xe-guest-utilities/files/xe-daemon.initd b/app-emulation/xe-guest-utilities/files/xe-daemon.initd new file mode 100644 index 000000000000..0ce568dbf396 --- /dev/null +++ b/app-emulation/xe-guest-utilities/files/xe-daemon.initd @@ -0,0 +1,28 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 $? +} |