From 20321b2fbedc6611be087163c9e95fc80d8707d7 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 20 Nov 2018 17:01:57 -0700 Subject: [PATCH] continue when systemd --user fails --- usr/share/install_helper.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/usr/share/install_helper.sh b/usr/share/install_helper.sh index 67bf653..3c5a472 100644 --- a/usr/share/install_helper.sh +++ b/usr/share/install_helper.sh @@ -504,18 +504,18 @@ elif [ "systemd" == "$my_system_launcher" ]; then fi systemctl --user stop $my_app >/dev/null 2>/dev/null systemctl --user start $my_app >/dev/null + + sleep 2; # give it time to start + _is_running=$(systemctl --user status --no-pager $my_app 2>/dev/null | grep "active.*running") + if [ -z "$_is_running" ]; then + echo "Something went wrong:" + systemctl --user status --no-pager $my_app + fi else echo "libpam-systemd is missing, which is required on Linux to register Telebit with the user launcher." echo "sudo apt-get install -y libpam-systemd" sudo apt-get install -y libpam-systemd fi - sleep 2; # give it time to start - _is_running=$(systemctl --user status --no-pager $my_app 2>/dev/null | grep "active.*running") - if [ -z "$_is_running" ]; then - echo "Something went wrong:" - systemctl --user status --no-pager $my_app - exit 1 - fi set -e echo -n "." else