1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/sh KLOGD=/sbin/klogd echo -n "Starting klogd: " if [ ! -x "${KLOGD}" ]; then echo "missing" exit 1 fi if ${KLOGD}; then echo "done" else echo "failed" exit 1 fi