modified install path for auto start in emulator
[platform/adaptation/emulator/spice-vdagent.git] / data / spice-vdagentd
index ab8f8f9..4072862 100755 (executable)
 exec="/usr/sbin/spice-vdagentd"
 prog="spice-vdagentd"
 port="/dev/virtio-ports/com.redhat.spice.0"
-pid="/opt/var/run/spice-vdagentd/spice-vdagentd.pid"
+pid="/tmp/spice-vdagentd/spice-vdagentd.pid"
 
 [ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
 
-lockfile=/opt/var/run/lock/subsys/$prog
+lockfile=/tmp/spice-vdagentd/lock/subsys/$prog
 
 start() {
     [ -x $exec ] || exit 5
     [ -c $port ] || exit 0
     modprobe uinput > /dev/null 2>&1
     # In case the previous running vdagentd crashed
-    rm -f /opt/var/run/spice-vdagentd/spice-vdagent-sock
+    rm -f /tmp/spice-vdagentd/spice-vdagent-sock
     echo -n $"Starting $prog: "
     daemon --pidfile $pid $exec $SPICE_VDAGENTD_EXTRA_ARGS
     retval=$?