From 0319ade6f072312647197d26bb88cb0a24eda5be Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 5 Apr 2012 02:46:47 +0000 Subject: main/xen: use adapted gentoo init.d scripts --- main/xen/xenconsoled.initd | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 main/xen/xenconsoled.initd (limited to 'main/xen/xenconsoled.initd') diff --git a/main/xen/xenconsoled.initd b/main/xen/xenconsoled.initd new file mode 100644 index 000000000..d4583226b --- /dev/null +++ b/main/xen/xenconsoled.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xenconsoled.initd,v 1.1 2011/04/05 19:23:05 alexxy Exp $ + +depend() { + need xenstored +} + +start() { + ebegin "Starting xenconsoled daemon" + start-stop-daemon --start --exec /usr/sbin/xenconsoled \ + --pidfile /var/run/xenconsoled.pid \ + -- --pid-file=/var/run/xenconsoled.pid \ + ${XENCONSOLED_OPTS} + eend $? +} + +stop() { + ebegin "Stoping xenconsoled daemon" + start-stop-daemon --stop --exec /usr/sbin/xenconsoled \ + --pidfile /var/run/xenconsoled.pid + eend $? +} + -- cgit v1.2.3