diff options
author | Marko Bausch <60338487+mrkbac@users.noreply.github.com> | 2023-01-05 20:27:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-05 20:27:12 +0300 |
commit | c546f4bf8c462247c954ee3b549e63db2fc687dd (patch) | |
tree | c9e2581be226eaee27d0f2444eed4de62b6ae6d0 /src/desktop-lite/install.sh | |
parent | ef192bf4677f35c18d9f0812ed2902a682c7bdeb (diff) |
desktop-lite: fixed qemu container (#370)
* desktop-lite: fixed qemu container
* bump version for desktop-lite
Diffstat (limited to 'src/desktop-lite/install.sh')
-rwxr-xr-x | src/desktop-lite/install.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/desktop-lite/install.sh b/src/desktop-lite/install.sh index 60bec12..ffd39d5 100755 --- a/src/desktop-lite/install.sh +++ b/src/desktop-lite/install.sh @@ -299,9 +299,9 @@ startInBackgroundIfNotRunning() { log "Starting \$1." echo -e "\n** \$(date) **" | sudoIf tee -a /tmp/\$1.log > /dev/null - if ! pidof \$1 > /dev/null; then + if ! pgrep -x \$1 > /dev/null; then keepRunningInBackground "\$@" - while ! pidof \$1 > /dev/null; do + while ! pgrep -x \$1 > /dev/null; do sleep 1 done log "\$1 started." @@ -347,16 +347,16 @@ log "** SCRIPT START **" # Start dbus. log 'Running "/etc/init.d/dbus start".' -if [ -f "/var/run/dbus/pid" ] && ! pidof dbus-daemon > /dev/null; then +if [ -f "/var/run/dbus/pid" ] && ! pgrep -x dbus-daemon > /dev/null; then sudoIf rm -f /var/run/dbus/pid fi sudoIf /etc/init.d/dbus start 2>&1 | sudoIf tee -a /tmp/dbus-daemon-system.log > /dev/null -while ! pidof dbus-daemon > /dev/null; do +while ! pgrep -x dbus-daemon > /dev/null; do sleep 1 done # Startup tigervnc server and fluxbox -sudo rm -rf /tmp/.X11-unix /tmp/.X*-lock +sudoIf rm -rf /tmp/.X11-unix /tmp/.X*-lock mkdir -p /tmp/.X11-unix sudoIf chmod 1777 /tmp/.X11-unix sudoIf chown root:\${group_name} /tmp/.X11-unix |