06-syslog 324 Bytes
Newer Older
1
#!/bin/sh -e
2 3
# tweak syslog configuration to avoid hard sync logging (one is better off
# doing remote syslog if you do care for reliable data anyways)
4 5 6 7 8 9 10 11 12
# credits: vvk@, thresh@ (2010)

CONFIG=/etc/syslog.conf

[ ! -f "$CONFIG" ] || \
	sed -i \
		-e 's,-/var/log/,/var/log/,g' \
		-e 's,/var/log/,-/var/log/,g' \
		"$CONFIG"