Bug#410485: [Pkg-ltsp-devel] Bug#410485: ltsp-server: remote
syslogging on ltsp clients is broken
vagrant at freegeek.org
vagrant at freegeek.org
Mon Feb 12 07:15:39 CET 2007
On Sun, Feb 11, 2007 at 12:05:02PM +0100, Oliver Grawert wrote:
> On Sa, 2007-02-10 at 16:53 -0800, Vagrant Cascadian wrote:
> > === modified file 'server/plugins/ltsp-build-client/Debian/000-basic-configuration'
> > --- server/plugins/ltsp-build-client/Debian/000-basic-configuration 2007-01-11 06:53:01 +0000
> > +++ server/plugins/ltsp-build-client/Debian/000-basic-configuration 2007-02-11 00:36:09 +0000
> hmm, we should find an automatic notification system of some kind, this
> change is included in ubuntu in
>
> server/plugins/ltsp-build-client/Ubuntu/000-basic-configuration
yes, sorry for not giving credit- i definitely stole it from the Ubuntu
plugin, though it's a pretty basic idea :)
> since syslog was patched to accept /etc/ltsp/syslogd to override the
> default (since edgy), we install a syslogd file that enables remote
> logging with our ltsp-server package in this path.
i think there is a syslog-ng that allows for dropping files into a
directory, rather than patching to include a specific file... might be
worth exploring further...
> that doesnt give you the guarantee that syslogging is on if you use a
> differnt server, but for a default it makes still sense as you will
> fix the problem for a majority of users that just uses the package
> without tweaks.
yeah, sounds good overall.
i still would like to be able to disable remote syslogging on the client
side... something like this:
=== modified file 'debian/ltsp-client.ltsp-client-setup.init'
--- debian/ltsp-client.ltsp-client-setup.init 2007-01-11 06:46:05 +0000
+++ debian/ltsp-client.ltsp-client-setup.init 2007-02-12 05:49:07 +0000
@@ -129,9 +129,15 @@
}
configure_syslog() {
- cat <<EOF > /etc/syslog.conf
+ if [ "true" = "$SYSLOG" ]; then
+ cat <<EOF > /etc/syslog.conf
*.* @${SYSLOG_HOST-$SERVER}
EOF
+ else
+ cat <<EOF > /etc/syslog.conf
+*.* /var/log/syslog
+EOF
+ fi
}
configure_fstab() {
or simply leaving the default /etc/syslog.conf in place, though it would
waste a bit more ram (as default syslog duplicates some information in
several files), but it would also make it possible to make
customizations...
live well,
vagrant
More information about the Pkg-ltsp-devel
mailing list