Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- misc-utils/uuidd.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/misc-utils/uuidd.c b/misc-utils/uuidd.c index a3fe830..77c967d 100644 --- a/misc-utils/uuidd.c +++ b/misc-utils/uuidd.c @@ -651,6 +651,13 @@ int main(int argc, char **argv) else if (pidfile_path_param) pidfile_path = pidfile_path_param; +#ifdef HAVE_LIBSYSTEMD + if (getppid() == 1 && 0 < sd_booted() && + (!uuidd_cxt.no_sock || !uuidd_cxt.no_fork || !no_pid)) + errx(EXIT_FAILURE, _("cannot run as systemd service " + "without --socket-activation")); +#endif + /* custom socket path and socket-activation make no sense */ if (s_flag && uuidd_cxt.no_sock && !uuidd_cxt.quiet) warnx(_("Both --socket-activation and --socket specified. " -- 2.9.2 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html