[Buildroot] [git commit branch/2018.02.x] package/audit: ensure that it starts after the logging daemon

Peter Korsgaard peter at korsgaard.com
Sun Nov 25 20:38:18 UTC 2018

commit: https://git.buildroot.net/buildroot/commit/?id=29cfca59491419a9b7270ca440f9c54234dd78cd
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2018.02.x

audit uses syslog(). Rename its init script to S02auditd to ensure that
it will start after syslogd. Otherwise the initial log messages will be
sent to the console (and probably lost, since almost nobody watches the
system console on embedded systems).

Signed-off-by: Carlos Santos <casantos at datacom.com.br>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit 6fe5fe4c4d034bd471a9ed28e5fba81475ae09ec)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
 package/audit/{S01auditd => S02auditd} | 0
 package/audit/audit.mk                 | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/audit/S01auditd b/package/audit/S02auditd
similarity index 100%
rename from package/audit/S01auditd
rename to package/audit/S02auditd
diff --git a/package/audit/audit.mk b/package/audit/audit.mk
index 2f6e6653b3..228ef9998c 100644
--- a/package/audit/audit.mk
+++ b/package/audit/audit.mk
@@ -38,7 +38,7 @@ AUDIT_CONF_OPTS += --disable-systemd
-	$(INSTALL) -D -m 755 package/audit/S01auditd $(TARGET_DIR)/etc/init.d/S01auditd
+	$(INSTALL) -D -m 755 package/audit/S02auditd $(TARGET_DIR)/etc/init.d/S02auditd

More information about the buildroot mailing list