@@ -12,6 +12,9 @@ respawn
12expect stop
12expect stop
14pre-start script
14pre-start script
15+ # Tell unity-mir to raise SIGSTOP after we quit
16+ initctl set-env UNITY_MIR_EXPECTS_SIGSTOP=1
15 if [ -n "$MIR_SOCKET" ]; then
18 if [ -n "$MIR_SOCKET" ]; then
16 if [ -z "$UNITY_MIR_SOCKET" ]; then
19 if [ -z "$UNITY_MIR_SOCKET" ]; then
17 # Save original value of MIR_SOCKET in case we are restarted,
20 # Save original value of MIR_SOCKET in case we are restarted,
@@ -45,3 +48,9 @@ pre-start script
47exec ${BINARY:-unity8} $ARGS
50exec ${BINARY:-unity8} $ARGS
53+ initctl unset-env UNITY_MIR_EXPECTS_SIGSTOP
54+ initctl set-env --global MIR_SOCKET=$UNITY_MIR_SOCKET
55+ initctl unset-env --global UNITY_MIR_SOCKET