~jonathan/ubuntu/quantal/ltsp/autologin

« back to all changes in this revision

Viewing changes to client/init-ltsp.d/common/50-syslog

  • Committer: Stéphane Graber
  • Date: 2012-03-06 20:14:14 UTC
  • mfrom: (111.1.53)
  • Revision ID: stgraber@ubuntu.com-20120306201414-pvi9tizjf83pwqtd
merge 5.3.4 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# This file is sourced
2
 
 
3
 
configure_syslog || true
 
1
if [ -z "$SYSLOG" ] || [ "$SYSLOG" = "remote" ]; then
 
2
    syslog_conf=/etc/syslog.conf
 
3
    if [ -d /etc/rsyslog.d ]; then
 
4
        syslog_conf=/etc/rsyslog.d/ltsp.conf   
 
5
        touch $syslog_conf
 
6
    fi
 
7
    if [ -f "$syslog_conf" ]; then
 
8
        cat <<EOF > "$syslog_conf"
 
9
*.* @${SYSLOG_HOST:-$SERVER}
 
10
EOF
 
11
    fi
 
12
fi