chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4ade796
)
unit: automatically connect to syslog when it becomes available
author
Lennart Poettering
<lennart@poettering.net>
Tue, 6 Apr 2010 20:01:06 +0000
(22:01 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 6 Apr 2010 20:01:06 +0000
(22:01 +0200)
unit.c
patch
|
blob
|
history
diff --git
a/unit.c
b/unit.c
index 1a0225a6334f0766828f27a5515152d24221b8fe..93c0d8d61a29bb442550d419e2331cbb5afb12c1 100644
(file)
--- a/
unit.c
+++ b/
unit.c
@@
-923,13
+923,13
@@
void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns) {
if (unit_has_name(u, SPECIAL_SYSLOG_SERVICE))
/* The syslog daemon just got started, hence try to connect to it. */
if (unit_has_name(u, SPECIAL_SYSLOG_SERVICE))
/* The syslog daemon just got started, hence try to connect to it. */
- log_
info("Syslog now available, this is where we should start logging to it."
);
+ log_
open_syslog(
);
} else if (UNIT_IS_ACTIVE_OR_RELOADING(os) && !UNIT_IS_ACTIVE_OR_RELOADING(ns)) {
if (unit_has_name(u, SPECIAL_SYSLOG_SERVICE))
/* The syslog daemon just got terminated, hence try to disconnect from it. */
} else if (UNIT_IS_ACTIVE_OR_RELOADING(os) && !UNIT_IS_ACTIVE_OR_RELOADING(ns)) {
if (unit_has_name(u, SPECIAL_SYSLOG_SERVICE))
/* The syslog daemon just got terminated, hence try to disconnect from it. */
- log_
info("Syslog now gone, this is where we should stio logging to it."
);
+ log_
close_syslog(
);
/* We don't care about D-Bus here, since we'll get an
* asynchronous notification for it anyway. */
/* We don't care about D-Bus here, since we'll get an
* asynchronous notification for it anyway. */