Mailinglist Archive: opensuse (1239 mails)

< Previous Next >
Re: [opensuse] systemd hides important information for diagnosis of rsyslog.
El 13/06/13 21:04, Cristian Rodríguez escribió:
El 13/06/13 17:56, Carlos E. R. escribió:

I have an rsyslog with a configuration error.

However:

Telcontar:~ # systemctl restart rsyslog
Telcontar:~ #

It claims success, but it is not true, it fails seconds later:

To explain it better, it doesnt claim success, they daemon fails later, remember systemctl start/stop/restart is asynchronous !

I crafted a one-liner for the rsyslog package, so it notifies systemd when the startup is really a success.


--- rsyslog-7.3.14.orig/tools/syslogd.c
+++ rsyslog-7.3.14/tools/syslogd.c
@@ -2033,7 +2033,7 @@ int realMain(int argc, char **argv)
close(2);
ourConf->globals.bErrMsgToStderr = 0;
}
-
+ sd_notify(0, "READY=1");
mainloop();

/* do any de-init's that need to be done AFTER this comment */


--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups