701475f791
Submitted by Hans-Christian Egtvedt
25 lines
314 B
Bash
25 lines
314 B
Bash
#!/bin/sh
|
|
|
|
SYSLOGD=/sbin/syslogd
|
|
|
|
echo -n "Starting syslogd: "
|
|
if [ ! -x "${SYSLOGD}" ]; then
|
|
echo "missing"
|
|
exit 1
|
|
fi
|
|
|
|
if ${SYSLOGD}; then
|
|
echo "done"
|
|
else
|
|
echo "failed"
|
|
exit 1
|
|
fi
|
|
|
|
echo -n "Log messages to syslog: "
|
|
if echo 4 4 1 7 > /proc/sys/kernel/printk; then
|
|
echo "done"
|
|
else
|
|
echo "failed"
|
|
exit 1
|
|
fi
|