commit | 2149524d679e8ea9253655370f282748ea41005d | [log] [tgz] |
---|---|---|
author | Jan Stancek <jstancek@redhat.com> | Tue Jan 17 12:08:21 2012 +0100 |
committer | Cyril Hrubis <chrubis@suse.cz> | Wed Jan 25 16:09:31 2012 +0100 |
tree | bfff0a8154aa8d9a29c45899980e41f840c4c457 | |
parent | f7e467a96316d6486731676ce5edf703c7940eb6 [diff] |
syslog-lib: support distros running systemd 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 <jstancek@redhat.com>