continue when systemd --user fails
This commit is contained in:
parent
8bf4bfc7c0
commit
20321b2fbe
|
@ -504,18 +504,18 @@ elif [ "systemd" == "$my_system_launcher" ]; then
|
||||||
fi
|
fi
|
||||||
systemctl --user stop $my_app >/dev/null 2>/dev/null
|
systemctl --user stop $my_app >/dev/null 2>/dev/null
|
||||||
systemctl --user start $my_app >/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
|
else
|
||||||
echo "libpam-systemd is missing, which is required on Linux to register Telebit with the user launcher."
|
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"
|
echo "sudo apt-get install -y libpam-systemd"
|
||||||
sudo apt-get install -y libpam-systemd
|
sudo apt-get install -y libpam-systemd
|
||||||
fi
|
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
|
set -e
|
||||||
echo -n "."
|
echo -n "."
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue