[X2Go-Commits] x2goserver.git - build-baikal (branch) updated: 3.1.0.1-26-g239588d
X2Go dev team
git-admin at x2go.org
Wed Dec 4 06:22:06 CET 2013
The branch, build-baikal has been updated
via 239588d6ced18485c821c81ce305d9c8d2a2eb2f (commit)
from d285cbef38ba3d3346c7aaf09b1d06ff9e592fbb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
-----------------------------------------------------------------------
Summary of changes:
debian/changelog | 1 +
x2goserver/sbin/x2gocleansessions | 12 ++++++------
2 files changed, 7 insertions(+), 6 deletions(-)
The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index aa632c6..16d20f3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,7 @@ x2goserver (3.1.1.0-0~x2go1) UNRELEASED; urgency=low
script will mark the session as suspended during the session
resuming process.
- Add X2Go server script x2gogetstatus.
+ - Add/enable debugging of x2gocleansessions.
* Remove /etc/x2go/applications on package removal if it is a
symlink, keep it, if it is a directory. Remove /etc/x2go
(if empty after purge) on package purge.
diff --git a/x2goserver/sbin/x2gocleansessions b/x2goserver/sbin/x2gocleansessions
index b3f65db..c56e720 100755
--- a/x2goserver/sbin/x2gocleansessions
+++ b/x2goserver/sbin/x2gocleansessions
@@ -101,15 +101,15 @@ elsif ($pid == 0 )
my @sinfo=split('\\|',"@outp[$i]");
if (@sinfo[4]eq 'F')
{
- #print "@sinfo[1], is blocked\n";
- #print "(@sinfo[1])Unmounting all shares\n";
+ syslog('debug', "@sinfo[1] is blocked");
+ syslog('debug', "@sinfo[1]: unmounting all shares");
system( "su @sinfo[11] -c \"export HOSTNAME && x2goumount-session @sinfo[1]\" 2> /dev/null");
}
elsif (! check_pid (@sinfo[0], at sinfo[1], at sinfo[12]))
{
system("su @sinfo[11] -c \"$x2go_lib_path/x2gochangestatus 'F' @sinfo[1] \" > /dev/null");
- #print "@sinfo[1], pid @sinfo[0] not exist, changing status from @sinfo[4] to F\n";
- #print "(@sinfo[1])Unmounting all shares\n";
+ syslog('debug', "@sinfo[1], pid @sinfo[0] does not exist, changing status from @sinfo[4] to F");
+ syslog('debug', "@sinfo[1]: unmounting all shares");
system( "su @sinfo[11] -c \"export HOSTNAME && x2goumount-session @sinfo[1]\" 2> /dev/null");
}
else
@@ -119,8 +119,8 @@ elsif ($pid == 0 )
if (!check_stat(@sinfo[1], at sinfo[11]))
{
system("su @sinfo[11] -c \"$x2go_lib_path/x2gochangestatus 'S' @sinfo[1] \" > /dev/null");
- #print "@sinfo[1], is suspended, changing status from @sinfo[4] to S\n";
- #print "(@sinfo[1])Unmounting all shares\n";
+ syslog("@sinfo[1] is suspended, changing status from @sinfo[4] to S");
+ syslog("@sinfo[1]: unmounting all shares");
system( "su @sinfo[11] -c \"export HOSTNAME && x2goumount-session @sinfo[1]\" 2> /dev/null");
}
}
hooks/post-receive
--
x2goserver.git (X2Go Server)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "x2goserver.git" (X2Go Server).
More information about the x2go-commits
mailing list