[Bug 697387] Re: SYSLOG option in lts.conf not documented

Alkis Georgopoulos 697387 at bugs.launchpad.net
Mon Sep 5 13:21:18 UTC 2011


Maybe the following line could be changed in the code:

- if [ -z "$SYSLOG" ] || [ "$SYSLOG" = "remote" ]; then
+ if [ "${SYSLOG_HOST-localhost}" != "localhost" ]; then

The weird ${SYSLOG_HOST-localhost} syntax means "if SYSLOG_HOST is set, but empty, then return the string localhost".
So to disable remote logging, one of the following could be used in lts.conf:

SYSLOG_HOST=""
or
SYSLOG_HOST="localhost"

Then there wouldn't be any need to introduce a new variable named
"SYSLOG".

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ltsp in Ubuntu.
https://bugs.launchpad.net/bugs/697387

Title:
  SYSLOG option in lts.conf not documented

Status in Linux Terminal Server Project:
  Triaged
Status in “ltsp” package in Ubuntu:
  Triaged

Bug description:
  I was looking for a way to _disable_ remote logging on the thin
  clients. There's an ltsp.conf file generated on the client at boot,
  which sends logs to $SERVER by default:

  root at ltsp1:~# cat /etc/rsyslog.d/ltsp.conf 
  *.* @192.168.0.254

  There is code to disable this in /opt/ltsp/i386/usr/share/ltsp/ltsp-
  init-common around line 300:

  configure_syslog() {
      if [ -z "$SYSLOG" ] || [ "$SYSLOG" = "remote" ]; then
          syslog_conf=/etc/syslog.conf
          if [ -d /etc/rsyslog.d ]; then
              syslog_conf=/etc/rsyslog.d/ltsp.conf
              touch $syslog_conf
          fi
          if [ -f "$syslog_conf" ]; then
              cat <<EOF > "$syslog_conf"
  *.* @${SYSLOG_HOST:-$SERVER}
  EOF
          fi
      fi
  }

  This SYSLOG option does not appear in the documentation (man 5
  lts.conf). It should be added if it's not a hack (and I don't see why
  it would be).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ltsp/+bug/697387/+subscriptions




More information about the foundations-bugs mailing list