Bug 751778

Summary: audit package doesn't include auditd.service for systemd
Product: [openSUSE] openSUSE 12.1 Reporter: Robert Milasan <rmilasan>
Component: OtherAssignee: E-mail List <bnc-team-screening>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P2 - High CC: fcrozat, forgotten_UJh-Dt86t1
Version: Final   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 12.1   
Whiteboard:
Found By: L3 Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Robert Milasan 2012-03-12 12:54:45 UTC
When audit is installed on the computer, the service can't be started using 
service audit start or /etc/init.d/audit or systemctl start auditd.service' due to missing auditd.service file for systemd:

robert@viper:~> sudo /etc/init.d/auditd restart
redirecting to systemctl
Failed to issue method call: Unit auditd.service failed to load: No such file or directory. See system logs and 'systemctl status auditd.service' for details.

robert@viper:~> sudo systemctl status auditd.service
auditd.service
	  Loaded: error (Reason: No such file or directory)
	  Active: inactive (dead)
Comment 1 Frederic Crozat 2012-03-14 15:09:03 UTC
does running systemctl daemon-reload fixes the issue ? (I'm guessing systemd isn't notificed about the initscript being installed).
Comment 2 Robert Milasan 2012-03-14 15:18:09 UTC
Actually like that it worked, but the weird part is the reboot didn't fix the issue, just the command: "systemctl daemon-reload" which I find it kind of strange.

Shouldn't be there in the spec file for auditd this command, actually to be ran after auditd is install?
Comment 3 Frederic Crozat 2012-03-14 15:23:15 UTC
I guess we should update our rpm macros used related to initscripts to run this command when systemd is running.
Comment 4 Robert Milasan 2012-03-14 15:25:33 UTC
Yep, that would be a good idea :)
Comment 5 Frederic Crozat 2012-03-14 15:46:27 UTC
found similar bug already in bugzilla

*** This bug has been marked as a duplicate of bug 717162 ***
Comment 6 Tony Jones 2012-10-15 22:24:11 UTC
*** Bug 784668 has been marked as a duplicate of this bug. ***