Skip to content

Commit

Permalink
Add a last ExecStop with a "sleep" command, so there is time to stop …
Browse files Browse the repository at this point in the history
…the UI vefore killing the X server.
  • Loading branch information
jofemodo committed Jan 25, 2022
1 parent e33fd3a commit a0e01eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion etc/systemd/zynthian.service
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ Environment=ZYNTHIAN_CONFIG_DIR=#ZYNTHIAN_CONFIG_DIR#
WorkingDirectory=#ZYNTHIAN_UI_DIR#
ExecStart=/usr/bin/startx ./zynthian.sh
TimeoutStopSec=20
#ExecStop=/usr/bin/killall -SIGTERM zynthian_gui.py
ExecStop=/usr/local/bin/send_osc 1370 /CUIA/EXIT_UI
ExecStop=/bin/sleep 10
#ExecStop=/usr/bin/killall -SIGTERM zynthian_gui.py
#ExecStop=/bin/sh -c "/usr/bin/tail --pid=$MAINPID -f /dev/null"
Restart=always
RestartSec=5
Expand Down
7 changes: 4 additions & 3 deletions etc/systemd/zynthian_debug.service
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ Environment=ZYNTHIAN_SYS_DIR=#ZYNTHIAN_SYS_DIR#
Environment=ZYNTHIAN_CONFIG_DIR=#ZYNTHIAN_CONFIG_DIR#
WorkingDirectory=#ZYNTHIAN_UI_DIR#
ExecStart=/usr/bin/startx ./zynthian.sh
#-- :0 vt3
TimeoutStopSec=20
ExecStop=/usr/bin/killall -SIGTERM zynthian_gui.py
ExecStop=/bin/sh -c "/usr/bin/tail --pid=$MAINPID -f /dev/null"
ExecStop=/usr/local/bin/send_osc 1370 /CUIA/EXIT_UI
ExecStop=/bin/sleep 10
#ExecStop=/usr/bin/killall -SIGTERM zynthian_gui.py
#ExecStop=/bin/sh -c "/usr/bin/tail --pid=$MAINPID -f /dev/null"
Restart=always
RestartSec=5

Expand Down

0 comments on commit a0e01eb

Please sign in to comment.