Questions about the Linux audit service AUDITD systemctl restart

Source: Internet
Author: User

In the Rhel7&&centos7 era, the default service is controlled by SYSTEMD and the Systemctl command completes the start and stop. But not all services can be perfectly controlled by systemctl, such as the AUDITD to be mentioned today.

Edit audit.rules after adding rules, of course, through the restart service to restart the effect, but by

Systemctl Restart AUDITD

The following error will be reported:

[Email protected]]# systemctl Restart auditdfailed to restart Auditd.service:Operation refused, unit Auditd.service be requested by dependency

Because I did not edit the file under the/usr/lib/systemd/system/auditd.service, so not human modification caused the service restart failure, after the help of Google God, finally found the following reply: The original text is as follows:

The audit daemon must is controlled from the service command. It would decide which commands can be sent to systemctl and which ones is supported by legacy actions. So, you should do:service AUDITD restartunfortunately, it have to be the this.


Since Steve Grubb can't solve this problem, it seems that some of the old applications still need service to solve the traditional way .



This article is from the "Ding Chubby Blog" blog, please be sure to keep this source http://z00w00.blog.51cto.com/515114/1940135

Questions about the Linux audit service AUDITD systemctl restart

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.