on xenial help sign in
Delete stale sockets.
9aec39eMichał Sawicz
data/unity8.conf+7
@@ -24,6 +24,13 @@ pre-start script
24 # unity-system-compositor's socket.
24 # unity-system-compositor's socket.
25 initctl set-env --global MIR_SOCKET=$MIR_SERVER_FILE
25 initctl set-env --global MIR_SOCKET=$MIR_SERVER_FILE
26 fi
26 fi
27+
28+ # Remove the socket if still there
29+ if [ -n "$UNITY_MIR_SOCKET" -a -S "$UNITY_MIR_SOCKET" ]; then
30+ rm "$UNITY_MIR_SOCKET"
31+ elif [ -S "$DEFAULT_MIR_SOCKET" ]; then
32+ rm "$DEFAULT_MIR_SOCKET"
33+ fi
27end script
34end script
28
35
29exec ${BINARY:-unity8} $ARGS
36exec ${BINARY:-unity8} $ARGS