" test [NAME...] Test whether any of the specified units are enabled\n",
program_invocation_short_name);
" test [NAME...] Test whether any of the specified units are enabled\n",
program_invocation_short_name);
if (!optarg)
arg_realize = REALIZE_MAYBE;
else if (streq(optarg, "no"))
if (!optarg)
arg_realize = REALIZE_MAYBE;
else if (streq(optarg, "no"))
arg_action = ACTION_DISABLE;
else if (streq(argv[optind], "test"))
arg_action = ACTION_TEST;
arg_action = ACTION_DISABLE;
else if (streq(argv[optind], "test"))
arg_action = ACTION_TEST;
if (!(m = dbus_message_new_method_call(
"org.freedesktop.systemd1",
if (!(m = dbus_message_new_method_call(
"org.freedesktop.systemd1",
if (!(reply = dbus_connection_send_with_reply_and_block(bus, m, -1, &error))) {
if (!(reply = dbus_connection_send_with_reply_and_block(bus, m, -1, &error))) {
if ((r = daemon_reload(bus)) < 0)
goto finish;
if (arg_realize != REALIZE_RELOAD) {
HASHMAP_FOREACH(j, have_installed, i)
if ((r = daemon_reload(bus)) < 0)
goto finish;
if (arg_realize != REALIZE_RELOAD) {
HASHMAP_FOREACH(j, have_installed, i)