[X2Go-Commits] [live-build-x2go] 02/02: only run kill command if there's actually a process id to kill

git-admin at x2go.org git-admin at x2go.org
Mon Jan 29 22:53:18 CET 2024


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch heuler/mate-minidesktop-bullseye
in repository live-build-x2go.

commit 39fa6e1b37c39465c5859badc7d280c3deb7f6be
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Fri Jun 19 21:01:54 2020 +0000

    only run kill command if there's actually a process id to kill
---
 config/includes.chroot/etc/network/if-up.d/0100-show-sysconf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/includes.chroot/etc/network/if-up.d/0100-show-sysconf b/config/includes.chroot/etc/network/if-up.d/0100-show-sysconf
index 14ac8a4..92b4664 100755
--- a/config/includes.chroot/etc/network/if-up.d/0100-show-sysconf
+++ b/config/includes.chroot/etc/network/if-up.d/0100-show-sysconf
@@ -48,5 +48,5 @@ fi
 	[ -n "$TIMESTAMP" ] && echo "- Build Version: $TIMESTAMP ($HUMANTIMESTAMP)" | tee -a /etc/motd >> /etc/issue
 
 	# make sure all unused VTs show the new /etc/issue
-	ps -C getty --no-header | awk '{ print $1 }' | xargs -n 1 kill -1
+	ps -C getty --no-header | awk '{ print $1 }' | xargs -n 1 --no-run-if-empty kill -1
 ) &

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git


More information about the x2go-commits mailing list