diff options
author | Hans de Goede <hdegoede@redhat.com> | 2010-11-01 13:44:30 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2010-11-01 13:44:30 +0100 |
commit | 5539985a3850f972d573a9fa566f47162d85b2ea (patch) | |
tree | 707e65d134c0e40e39560f275cd9efd5792c6ce8 | |
parent | ba0bb9e7fd64765b6ee3f2b9f72b35c8527f730a (diff) |
initscript: remove socket before starting the daemon
This is necessary if the previous daemon crashed (exited without cleaning
up behind itself).
-rw-r--r-- | spice-vdagentd.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spice-vdagentd.sh b/spice-vdagentd.sh index e1ddcc4..7037b42 100644 --- a/spice-vdagentd.sh +++ b/spice-vdagentd.sh @@ -35,6 +35,8 @@ lockfile=/var/lock/subsys/$prog start() { [ -x $exec ] || exit 5 [ -c $port ] || exit 6 + # In case the previous running vdagentd crashed + rm -f /var/run/spice-vdagentd/spice-vdagent-sock echo -n $"Starting $prog: " daemon $exec $SPICE_VDAGENTD_EXTRA_ARGS retval=$? |