1 |
commit: f098518c00c7fd57dd1e70452350525324246256 |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Nov 19 12:51:03 2017 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 12 17:05:34 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f098518c |
7 |
|
8 |
app-emulation/spice-vdagent: remove unused init file |
9 |
|
10 |
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org> |
11 |
|
12 |
.../spice-vdagent/files/spice-vdagent.initd-2 | 60 ---------------------- |
13 |
1 file changed, 60 deletions(-) |
14 |
|
15 |
diff --git a/app-emulation/spice-vdagent/files/spice-vdagent.initd-2 b/app-emulation/spice-vdagent/files/spice-vdagent.initd-2 |
16 |
deleted file mode 100644 |
17 |
index a3194d5c185..00000000000 |
18 |
--- a/app-emulation/spice-vdagent/files/spice-vdagent.initd-2 |
19 |
+++ /dev/null |
20 |
@@ -1,60 +0,0 @@ |
21 |
-#!/sbin/openrc-run |
22 |
-# Copyright 1999-2012 Gentoo Foundation |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-depend() { |
26 |
- after dbus |
27 |
-} |
28 |
- |
29 |
-PIDFILE="/var/run/spice-vdagentd/spice-vdagentd.pid" |
30 |
- |
31 |
-start() { |
32 |
- PORT="${PORT:-/dev/virtio-ports/com.redhat.spice.0}" |
33 |
- DEVICE="${DEVICE:-/dev/uinput}" |
34 |
- |
35 |
- ebegin "Checking for required modules and devices" |
36 |
- |
37 |
- if [[ ! -d /sys/module/uinput ]]; then |
38 |
- modprobe -q uinput |
39 |
- fi |
40 |
- |
41 |
- if [[ ! -d /sys/module/uinput ]]; then |
42 |
- eerror "Module 'uinput' not loaded or not enabled in the kernel" |
43 |
- eend 1 |
44 |
- return 1 |
45 |
- fi |
46 |
- |
47 |
- if [[ ! -c "${PORT}" ]] ; then |
48 |
- eerror "Required virtio port does not exist. Make sure you" |
49 |
- eerror "started the virtual machine with appropriate parameters." |
50 |
- eend 1 |
51 |
- return 1 |
52 |
- fi |
53 |
- eend 0 |
54 |
- |
55 |
- if [[ ! -c ${DEVICE} && -c /dev/input/uinput ]]; then |
56 |
- DEVICE=/dev/input/uinput |
57 |
- fi |
58 |
- |
59 |
- # recreate the directory since /var/run may reside on a ramdisk |
60 |
- mkdir -p /var/run/spice-vdagentd |
61 |
- |
62 |
- # cleanup stalled socket |
63 |
- rm -f /var/run/spice-vdagentd/spice-vdagent-sock |
64 |
- |
65 |
- ebegin "Starting spice VD agent daemon" |
66 |
- start-stop-daemon \ |
67 |
- --start \ |
68 |
- --pidfile "${PIDFILE}" \ |
69 |
- --exec /usr/sbin/spice-vdagentd \ |
70 |
- -- -u "${DEVICE}" ${SPICE_VDAGENT_ARGS} |
71 |
- eend $? |
72 |
-} |
73 |
- |
74 |
-stop() { |
75 |
- ebegin "Stopping spice VD agent daemon" |
76 |
- start-stop-daemon \ |
77 |
- --stop \ |
78 |
- --pidfile "${PIDFILE}" |
79 |
- eend $? |
80 |
-} |