diff options
author | freaj <freaj@riseup.net> | 2015-03-30 11:08:25 +0200 |
---|---|---|
committer | freaj <freaj@riseup.net> | 2015-03-30 11:08:25 +0200 |
commit | cec37e643f4889b4b8652bdfce886b1e5e81f2bd (patch) | |
tree | c992d8325923324f5d318f57b4c05dd5fe494988 /pcr/openrc-misc/xe-daemon.initd | |
parent | 7385c6143c1b587bca68deade6e5989d11879767 (diff) | |
download | abslibre-cec37e643f4889b4b8652bdfce886b1e5e81f2bd.tar.gz abslibre-cec37e643f4889b4b8652bdfce886b1e5e81f2bd.tar.bz2 abslibre-cec37e643f4889b4b8652bdfce886b1e5e81f2bd.zip |
openrc-misc: add new package to [pcr]
Diffstat (limited to 'pcr/openrc-misc/xe-daemon.initd')
-rw-r--r-- | pcr/openrc-misc/xe-daemon.initd | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pcr/openrc-misc/xe-daemon.initd b/pcr/openrc-misc/xe-daemon.initd new file mode 100644 index 000000000..50519065f --- /dev/null +++ b/pcr/openrc-misc/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 +# $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 $? +} |