+SSD=/sbin/start-stop-daemon
+SLOG=/usr/sbin/syslogd
+KLOG=/usr/sbin/klogd
+SLOG_PID=/var/run/syslogd.pid
+KLOG_PID=/var/run/klogd.pid
+
+
+print_status() {
+ $SSD --status --pidfile $2
+ case $? in
+ 0) echo "$1 is running with pid $(cat $2)" ;;
+ 1) echo "$1 is not running but the pid file $2 exists" ;;
+ 3) echo "$1 is not running" ;;
+ 4) echo "Unable to determine the program status" ;;
+ esac
+}
+