@@ -16,11 +16,9 @@ pre-start script
1616 initctl set-env UNITY_MIR_EMITS_SIGSTOP=1
1717
1818 if [ -n "$MIR_SOCKET" ]; then
19− if [ -z "$UNITY_MIR_SOCKET" ]; then
20− # Save original value of MIR_SOCKET in case we are restarted,
21− # as we modify the variable for future jobs, including ourself.
22− UNITY_MIR_SOCKET=$MIR_SOCKET
23− fi
19+ # Save original value of MIR_SOCKET in case we are stopped,
20+ # as we modify the variable for future jobs, including ourself.
21+ UNITY_MIR_SOCKET=$(initctl get-env --global MIR_SOCKET)
2422 initctl set-env --global UNITY_MIR_SOCKET=$UNITY_MIR_SOCKET
2523
2624 # Point unity8 at unity-system-compositor