Only log about starting in daemon mode, rely on PID1 to log this in notify mode. Also
explicitly set the STATUS variable, as is done in notify mode as is done for other
serivecs.
if (r < 0)
goto exit;
- log_info("starting version " VERSION);
-
r = udev_rules_apply_static_dev_perms(manager->rules);
if (r < 0)
log_error_errno(r, "failed to apply permissions on static device nodes: %m");
if (arg_daemonize) {
pid_t pid;
+ log_info("starting version " VERSION);
+
pid = fork();
switch (pid) {
case 0:
write_string_file("/proc/self/oom_score_adj", "-1000");
} else
- sd_notify(true, "READY=1");
+ sd_notify(true,
+ "READY=1\n"
+ "STATUS=Processing...");
r = manager_listen(manager);
if (r < 0)