#!/bin/sh

LOCKDIR=/var/lock/subsys

for n in syslogd syslog-ng; do
    if [ -f "$LOCKDIR/$n" ]; then
	/sbin/service $n reload && break
    fi
done