File: syslog.buffer

package info (click to toggle)
nslu2-utils 0.10%2Br71-9
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 304 kB
  • ctags: 5
  • sloc: sh: 2,408; perl: 780; makefile: 56
file content (23 lines) | stat: -rw-r--r-- 423 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
#
# Invoke the syslog startup if the configuration
# uses (only) 'buffer' as the DESTINATION
DESTINATION=
test -f /etc/syslog.conf && . /etc/syslog.conf
doit=

for d in $DESTINATION
do
	case "$d" in
	buffer)	doit=1;;
	file)	exit 0;;
	remote)	exit 0;;
	*)	echo "/etc/syslog.conf: $d: unknown destination" >&2
		exit 1;;
	esac
done

test -n "$doit" -a -x /etc/init.d/syslog &&
	exec /etc/init.d/syslog "$@"

exit 0