File: syslog-cleanup.sh

package info (click to toggle)
dracut 005-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,368 kB
  • ctags: 207
  • sloc: sh: 6,487; ansic: 192; makefile: 108
file content (19 lines) | stat: -rwxr-xr-x 467 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# Just cleans up a previously started syslogd
. /lib/dracut-lib.sh


if getarg rdnetdebug ; then
    exec >/tmp/syslog-cleanup.$1.$$.out
    exec 2>>/tmp/syslog-cleanup.$1.$$.out
    set -x
fi

if [ -f /tmp/syslog.server ]; then
	read syslogtype < /tmp/syslog.type
	if [ -e "/sbin/${syslogtype}-stop" ]; then
		${syslogtype}-stop
	else
		warn "syslog-cleanup: Could not find script to stop syslog of type \"$syslogtype\". Syslog will not be stopped."
	fi
fi