public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in app-emulation/spice-vdagent/files: spice-vdagent.initd spice-vdagent.confd
@ 2011-05-11  9:02 Tiziano Mueller (dev-zero)
  0 siblings, 0 replies; only message in thread
From: Tiziano Mueller (dev-zero) @ 2011-05-11  9:02 UTC (permalink / raw
  To: gentoo-commits

dev-zero    11/05/11 09:02:31

  Added:                spice-vdagent.initd spice-vdagent.confd
  Log:
  Initial commit, ebuild written by me.
  
  (Portage version: 2.1.9.46/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  app-emulation/spice-vdagent/files/spice-vdagent.initd

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/spice-vdagent/files/spice-vdagent.initd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/spice-vdagent/files/spice-vdagent.initd?rev=1.1&content-type=text/plain

Index: spice-vdagent.initd
===================================================================
#!/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/spice-vdagent/files/spice-vdagent.initd,v 1.1 2011/05/11 09:02:31 dev-zero Exp $

depend() {
    after dbus
}

PIDFILE="/var/run/spice-vdagentd/spice-vdagentd.pid"

start() {
    ebegin "Checking for required modules and devices"

    if [[ ! -d /sys/module/uinput ]] ; then
        eerror "Module 'uinput' not loaded or not enabled in the kernel"
        eend 1
        return 1
    fi

    if [[ ! -c "${PORT}" ]] ; then
        eerror "Required virtio port does not exist. Make sure you"
        eerror "started the virtual machine with appropriate parameters."
        eend 1
        return 1
    fi
    eend 0

    # cleanup stalled socket
    rm -f /var/run/spice-vdagentd/spice-vdagent-sock

    ebegin "Starting spice VD agent daemon"
    start-stop-daemon
        --start \
        --pidfile "${PIDFILE}" \
        --exec /usr/sbin/spice-vdagentd \
        -- ${SPICE_VDAGENT_ARGS}
    eend $?
}

stop() {
    ebegin "Stopping spice VD agent daemon"
    start-stop-daemon
        --stop \
        --pidfile "${PIDFILE}"
    eend $?
}



1.1                  app-emulation/spice-vdagent/files/spice-vdagent.confd

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/spice-vdagent/files/spice-vdagent.confd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/spice-vdagent/files/spice-vdagent.confd?rev=1.1&content-type=text/plain

Index: spice-vdagent.confd
===================================================================

# The virtual communication port provided by the hypervisor/vm
PORT="/dev/virtio-ports/com.redhat.spice.0"

# extra arguments for spice-vdagentd
SPICE_VDAGENT_ARGS=""







^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-11  9:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-11  9:02 [gentoo-commits] gentoo-x86 commit in app-emulation/spice-vdagent/files: spice-vdagent.initd spice-vdagent.confd Tiziano Mueller (dev-zero)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox