]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
charon-systemd: Add a log message when the daemon is starting
authorTobias Brunner <tobias@strongswan.org>
Wed, 19 Apr 2023 14:10:26 +0000 (16:10 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 27 Apr 2023 11:52:34 +0000 (13:52 +0200)
While there is a status message sent to systemd (can be seen e.g. in
systemctl status), the version etc. is currently not logged to the
journal, syslog or any log files.

src/charon-systemd/charon-systemd.c

index 8aa77f1bb1fd57d24124e1165cdbe0a60d815f64..308127ae9449c487467ae407b691321c11bdbf16 100644 (file)
@@ -368,6 +368,9 @@ int main(int argc, char *argv[])
 
        charon->load_loggers(charon);
 
+       DBG1(DBG_DMN, "Starting charon-systemd IKE daemon (strongSwan "VERSION", "
+                "%s %s, %s)", utsname.sysname, utsname.release, utsname.machine);
+
        if (!charon->initialize(charon,
                        lib->settings->get_str(lib->settings, "%s.load", PLUGINS, lib->ns)))
        {