From b6af1e02efe594039707cd882517663d5370f375 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Thu, 25 Aug 2016 15:26:24 +0200 Subject: testing/[multiple]: move unmaintained packages This moves all packages from testing to unmaintained which have not been updated for atleast 6 months. If you are affected by this commit please follow this proceddure: * make sure your packages build on all architectures * move your pacakge(s) back to testing * if you want to keep this package and can maintain it (or find somebody to maintain it for you) for a minimum of 6 months ask it to be moved to community --- unmaintained/spice-vdagent/spice-vdagentd.initd | 97 +++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 unmaintained/spice-vdagent/spice-vdagentd.initd (limited to 'unmaintained/spice-vdagent/spice-vdagentd.initd') diff --git a/unmaintained/spice-vdagent/spice-vdagentd.initd b/unmaintained/spice-vdagent/spice-vdagentd.initd new file mode 100644 index 0000000000..5c04d0242c --- /dev/null +++ b/unmaintained/spice-vdagent/spice-vdagentd.initd @@ -0,0 +1,97 @@ +#!/sbin/openrc-run + +# This file is part of spice-vdagent +# by Stuart Cardall + +sockfile="/var/run/spice-vdagentd/spice-vdagent-sock" +pidfile="/var/run/spice-vdagentd/spice-vdagentd.pid" +command="/usr/sbin/spice-vdagentd" +command_args="-X" +msgfile=/tmp/spice-vdagent.msg +extra_commands="info" + +MODULES="uinput" + +depend() { + need net + need logger +} + +start_pre() { + # make sure dir for pidfile exists. /var/run is tmpfs... + checkpath --directory ${pidfile%/*} + # load userspace input driver for copy & paste support + ebegin "Loading uinput kernel module for ${SVCNAME}" + for mod in $MODULES; do + modprobe -q $mod + done + eend $? + rm -f $sockfile +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start $command --pidfile $pidfile -- $command_args + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --quiet --pidfile $pidfile + eend $? "Failed to stop ${SVCNAME}" + ebegin "Unloading uinput kernel module for ${SVCNAME}" + for mod in $MODULES; do + rmmod $mod + done + eend $? + rm -f $sockfile +} + +info() { + cat > $msgfile < + +
+ + + + + + + + + + + + + + + + + +