on xenial help sign in
Tweaks to upstart job
77aa031Andrea Cimitan
data/unity8.conf+9
@@ -12,6 +12,9 @@ respawn
12expect stop
12expect stop
13
13
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
17+
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
45end script
48end script
46
49
47exec ${BINARY:-unity8} $ARGS
50exec ${BINARY:-unity8} $ARGS
51+
52+post-stop script
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
56+end script