init.d/ scripts may not be available on distros using systemd, for example Fedora16. This patch is using 'systemctl' to restart syslog daemon on distros running systemd. If systemctl is not available it falls back to directly calling init script. Also it drops few upstart TODO comments, current code works OK with upstart (tested on RHEL6). Signed-off-by: Jan Stancek --- testcases/kernel/syscalls/syslog/syslog-lib.sh | 40 +++++++++++++---------- 1 files changed, 23 insertions(+), 17 deletions(-)