Lines Matching defs:units

511                         printf("%s%u loaded units listed.%s\n"
515 printf("%s%u loaded units listed.%s Pass --all to see loaded but inactive units, too.\n"
559 return log_error_errno(r, "Failed to list units: %s", bus_error_message(&error, r));
1300 static void output_unit_file_list(const UnitFileList *units, unsigned c) {
1307 for (u = units; u < units + c; u++) {
1327 for (u = units; u < units + c; u++) {
1360 _cleanup_free_ UnitFileList *units = NULL;
1388 units = new(UnitFileList, n_units);
1389 if (!units && n_units > 0) {
1398 units[c++] = *u;
1430 if (!GREEDY_REALLOC(units, size, c + 1))
1433 units[c] = (struct UnitFileList) {
1438 if (output_show_unit_file(&units[c], strv_skip(argv, 1)))
1450 qsort_safe(units, c, sizeof(UnitFileList), compare_unit_file_list);
1451 output_unit_file_list(units, c);
1454 for (unit = units; unit < units + c; unit++)
1607 char ***units,
1616 assert(units);
1618 r = strv_extend(units, name);
1629 if (strv_contains(*units, *c)) {
1654 r = list_dependencies_one(bus, *c, level + 1, units, (branches << 1) | (c[1] == NULL ? 0 : 1));
1661 strv_remove(*units, name);
1667 _cleanup_strv_free_ char **units = NULL;
1690 return list_dependencies_one(bus, u, 0, &units, 0);
2270 log_warning("%sWarning:%s %s changed on disk. Run 'systemctl%s daemon-reload' to reload units.",
2435 /* The unit is currently not loaded, hence say it's "inactive", since all units that aren't loaded are
2787 /* When stopping units, warn if they can still be triggered by
4602 printf(" Failed: %u units\n", mi.n_failed_units);
4743 return log_error_errno(ENOTDIR, "Cannot find units: $XDG_CONFIG_HOME and $HOME are not set.");
4749 return log_error_errno(ENOTDIR, "Cannot find units: $XDG_RUNTIME_DIR is not set.");
4787 log_error("Cannot remotely cat units.");
5219 /* Processes all SysV units, and reshuffles the array so that
5220 * afterwards only the native units remain */
5351 /* When enabling units qualified path names are OK,
5527 "Possible reasons for having this kind of units are:\n"
6082 // FIXME: support units with path==NULL (no FragmentPath)
6110 log_error("Cannot edit units if not on a tty.");
6115 log_error("Cannot edit units remotely.");
6180 " -t --type=TYPE List units of a particular type\n"
6181 " --state=STATE List units with particular LOAD or SUB or ACTIVE state\n"
6183 " -a --all Show all loaded units/properties, including dead/empty\n"
6184 " ones. To list all units installed on the system, use\n"
6218 " list-units [PATTERN...] List loaded units\n"
6221 " start NAME... Start (activate) one or more units\n"
6222 " stop NAME... Stop (deactivate) one or more units\n"
6223 " reload NAME... Reload one or more units\n"
6224 " restart NAME... Start or restart one or more units\n"
6225 " try-restart NAME... Restart one or more units if active\n"
6226 " reload-or-restart NAME... Reload one or more units if possible,\n"
6228 " try-reload-or-restart NAME... If active, reload one or more units,\n"
6232 " is-active PATTERN... Check whether units are active\n"
6233 " is-failed PATTERN... Check whether units are failed\n"
6234 " status [PATTERN...|PID...] Show runtime status of one or more units\n"
6236 " units/jobs or the manager\n"
6237 " cat PATTERN... Show files and drop-ins of one or more units\n"
6239 " help PATTERN...|PID... Show manual for one or more units\n"
6241 " units\n"
6242 " list-dependencies [NAME] Recursively show units which are required\n"
6255 " mask NAME... Mask one or more units\n"
6256 " unmask NAME... Unmask one or more units\n"
6257 " link PATH... Link one or more units files into\n"
6260 " on specified one or more units\n"
6262 " on specified one or more units\n"
7318 { "list-units", VERB_ANY, VERB_ANY, VERB_DEFAULT|VERB_NOCHROOT, list_units },