View Issue Details

IDProjectCategoryView StatusLast Update
0018134CentOS-8auditpublic2021-03-30 03:32
Reporterliuwei061 Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version8.2.2004 
Summary0018134: Failed to restart auditd.service: Operation refused
DescriptionIn the centos8, the default service is controlled by SYSTEMD, started and stopped by systemctl command. But not all services can be perfectly controlled by systemctl, such as auditd.
When I want to restart "auditd.service"through the command of "systemctl restart auditd",
The error is as follows:

[root@localhost ~]# systemctl restart auditd
Failed to restart auditd.service: Operation refused, unit auditd.service may be requested by dependency only (it is configured to refuse manual start/stop).
See system logs and 'systemctl status auditd.service' for details.

So I have to use the service command to solve this problem:
[root@localhost ~]# service auditd restart
Stopping logging: [ OK ]
Redirecting start to /bin/systemctl start auditd.service
[root@localhost ~]#
Steps To Reproduce1.Send command: systemctl restart auditd
2.Send command :service auditd restart
Tagsauditd

Activities

rasepat159

rasepat159

2021-03-30 03:13

reporter   ~0038346

Run "systemctl status auditd.service" command to see more details. I think that's your mistake!

Follow me: https://vsudonet.blogspot.com
liuwei061

liuwei061

2021-03-30 03:32

reporter   ~0038347

Run "systemctl status auditd.service" command to see more details.
But I can't get the userful information.

[root@bogon irqbalance]# systemctl restart auditd.service
Failed to restart auditd.service: Operation refused, unit auditd.service may be requested by dependency only (it is configured to refuse manual start/stop).
See system logs and 'systemctl status auditd.service' for details.
[root@bogon irqbalance]# systemctl status auditd.service
● auditd.service - Security Auditing Service
   Loaded: loaded (/usr/lib/systemd/system/auditd.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2021-03-30 11:29:12 CST; 22s ago
     Docs: man:auditd(8)
           https://github.com/linux-audit/audit-documentation
  Process: 12824 ExecStartPost=/sbin/augenrules --load (code=exited, status=0/SUCCESS)
  Process: 12820 ExecStart=/sbin/auditd (code=exited, status=0/SUCCESS)
 Main PID: 12821 (auditd)
    Tasks: 2 (limit: 26213)
   Memory: 2.0M
   CGroup: /system.slice/auditd.service
           └─12821 /sbin/auditd

3月 30 11:29:12 bogon augenrules[12824]: backlog_wait_time 60000
3月 30 11:29:12 bogon augenrules[12824]: enabled 1
3月 30 11:29:12 bogon augenrules[12824]: failure 1
3月 30 11:29:12 bogon augenrules[12824]: pid 12821
3月 30 11:29:12 bogon augenrules[12824]: rate_limit 0
3月 30 11:29:12 bogon augenrules[12824]: backlog_limit 8192
3月 30 11:29:12 bogon augenrules[12824]: lost 0
3月 30 11:29:12 bogon augenrules[12824]: backlog 0
3月 30 11:29:12 bogon augenrules[12824]: backlog_wait_time 60000
3月 30 11:29:12 bogon systemd[1]: Started Security Auditing Service.
[root@bogon irqbalance]#

Issue History

Date Modified Username Field Change
2021-03-30 02:11 liuwei061 New Issue
2021-03-30 02:11 liuwei061 Tag Attached: auditd
2021-03-30 02:11 liuwei061 Tag Attached: service
2021-03-30 02:11 liuwei061 Tag Attached: systemctl
2021-03-30 02:11 liuwei061 Tag Detached: service
2021-03-30 02:11 liuwei061 Tag Detached: systemctl
2021-03-30 03:13 rasepat159 Note Added: 0038346
2021-03-30 03:32 liuwei061 Note Added: 0038347