Home
last modified time | relevance | path

Searched refs:verb (Results 1 – 25 of 50) sorted by relevance

12

/systemd-251/src/shared/
Dverbs.c50 if (streq_ptr(name, verbs[i].verb) || in verbs_find_verb()
59 const Verb *verb; in dispatch_verb() local
74 verb = verbs_find_verb(name, verbs); in dispatch_verb()
75 if (!verb) { in dispatch_verb()
87 if (verb->min_args != VERB_ANY && in dispatch_verb()
88 (unsigned) left < verb->min_args) in dispatch_verb()
92 if (verb->max_args != VERB_ANY && in dispatch_verb()
93 (unsigned) left > verb->max_args) in dispatch_verb()
97 if ((verb->flags & VERB_ONLINE_ONLY) && running_in_chroot_or_offline()) { in dispatch_verb()
98 log_info("Running in chroot, ignoring command '%s'", name ?: verb->verb); in dispatch_verb()
[all …]
Dverb-log-control.c10 int verb_log_control_common(sd_bus *bus, const char *destination, const char *verb, const char *val… in verb_log_control_common() argument
12 bool level = endswith(verb, "log-level"); in verb_log_control_common()
21 assert(endswith(verb, "log-level") || endswith(verb, "log-target")); in verb_log_control_common()
/systemd-251/src/systemctl/
Dsystemctl-enable.c65 const char *verb = argv[0]; in verb_enable() local
79 r = enable_sysv_units(verb, names); in verb_enable()
92 if (streq(verb, "disable")) { in verb_enable()
98 if (streq(verb, "link")) { in verb_enable()
108 if (streq(verb, "enable")) { in verb_enable()
111 } else if (streq(verb, "disable")) in verb_enable()
113 else if (streq(verb, "reenable")) { in verb_enable()
116 } else if (streq(verb, "link")) in verb_enable()
118 else if (streq(verb, "preset")) in verb_enable()
120 else if (streq(verb, "mask")) in verb_enable()
[all …]
Dsystemctl-start-unit.c20 const char *verb; /* systemctl verb */ member
38 static const char *verb_to_method(const char *verb) { in verb_to_method() argument
40 if (streq_ptr(unit_actions[i].verb, verb)) in verb_to_method()
46 static const char *verb_to_job_type(const char *verb) { in verb_to_job_type() argument
48 if (streq_ptr(unit_actions[i].verb, verb)) in verb_to_job_type()
232 enum action verb_to_action(const char *verb) { in verb_to_action() argument
234 if (streq_ptr(action_table[i].verb, verb)) in verb_to_action()
Dsystemctl-sysv-compat.c110 int enable_sysv_units(const char *verb, char **args) { in enable_sysv_units() argument
125 if (!STR_IN_SET(verb, in enable_sysv_units()
168 if (found_native && streq(verb, "is-enabled")) in enable_sysv_units()
197 v = strdup(verb); in enable_sysv_units()
225 if (streq(verb, "is-enabled")) { in enable_sysv_units()
Dsystemctl-add-dependency.c13 const char *verb = argv[0]; in verb_add_dependency() local
32 if (streq(verb, "add-wants")) in verb_add_dependency()
34 else if (streq(verb, "add-requires")) in verb_add_dependency()
Dsystemctl-start-unit.h10 const char *verb; member
16 enum action verb_to_action(const char *verb);
/systemd-251/shell-completion/bash/
Dsystemctl.in124 local i verb comps mode cur_orig
230 verb=${COMP_WORDS[i]}
257 if [[ -z ${verb-} ]]; then
260 elif __contains_word "$verb" ${VERBS[ALL_UNITS]}; then
264 elif __contains_word "$verb" ${VERBS[NONTEMPLATE_UNITS]}; then
268 elif __contains_word "$verb" ${VERBS[ENABLED_UNITS]}; then
272 elif __contains_word "$verb" ${VERBS[DISABLED_UNITS]}; then
277 elif __contains_word "$verb" ${VERBS[REENABLABLE_UNITS]}; then
283 elif __contains_word "$verb" ${VERBS[STARTABLE_UNITS]}; then
287 elif __contains_word "$verb" ${VERBS[RESTARTABLE_UNITS]}; then
[all …]
Dsystemd-analyze53 local i verb comps mode
85 verb=${COMP_WORDS[i]}
103 if [[ -z ${verb-} && $cur = -* ]]; then
108 if [[ -z ${verb-} ]]; then
111 elif __contains_word "$verb" ${VERBS[STANDALONE]}; then
116 elif __contains_word "$verb" ${VERBS[CRITICAL_CHAIN]}; then
123 elif __contains_word "$verb" ${VERBS[DOT]}; then
128 elif __contains_word "$verb" ${VERBS[SECCOMP_FILTER]}; then
135 elif __contains_word "$verb" ${VERBS[VERIFY]}; then
143 elif __contains_word "$verb" ${VERBS[CAT_CONFIG]}; then
[all …]
Dresolvectl34 local i comps verb name
88 verb=${COMP_WORDS[i]}
93 if [[ -z ${verb-} ]]; then
96 elif __contains_word "$verb" ${VERBS[STANDALONE]} ${VERBS[DOMAIN]}; then
99 elif __contains_word "$verb" ${VERBS[STATUS]}; then
102 elif __contains_word "$verb" ${VERBS[LOG_LEVEL]}; then
105 elif __contains_word "$verb" ${VERBS[FAMILY]}; then
119 …elif __contains_word "$verb" ${VERBS[LINK]} ${VERBS[BOOLEAN]} ${VERBS[RESOLVE]} ${VERBS[DNSSEC]} $…
131 elif __contains_word "$verb" ${VERBS[RESOLVE]}; then
147 elif __contains_word "$verb" ${VERBS[BOOLEAN]}; then
[all …]
Dloginctl40 local i verb comps
91 verb=${COMP_WORDS[i]}
96 if [[ -z ${verb-} ]]; then
99 elif __contains_word "$verb" ${VERBS[SESSIONS]}; then
102 elif __contains_word "$verb" ${VERBS[USERS]}; then
105 elif __contains_word "$verb" ${VERBS[SEATS]}; then
108 elif __contains_word "$verb" ${VERBS[STANDALONE]}; then
111 elif __contains_word "$verb" ${VERBS[ATTACH]}; then
112 if [[ $prev = $verb ]]; then
Dtimedatectl40 local i verb comps
74 verb=${COMP_WORDS[i]}
79 if [[ -z ${verb-} ]]; then
81 elif __contains_word "$verb" ${VERBS[BOOLEAN]}; then
83 elif __contains_word "$verb" ${VERBS[TIMEZONES]}; then
85 elif __contains_word "$verb" ${VERBS[STANDALONE]} ${VERBS[TIME]}; then
87 elif __contains_word "$verb" ${VERBS[TIMEZONES]}; then
Dlocalectl35 local i verb comps locale_vals
65 verb=${COMP_WORDS[i]}
70 if [[ -z ${verb-} ]]; then
72 elif __contains_word "$verb" ${VERBS[VARIANTS]}; then
74 elif __contains_word "$verb" ${VERBS[LOCALES]}; then
86 elif __contains_word "$verb" ${VERBS[KEYMAPS]}; then
88 elif __contains_word "$verb" ${VERBS[STANDALONE]} ${VERBS[X11]}; then
Dportablectl33 local i n comps verb
75 verb=${COMP_WORDS[i]}
82 if [[ -z ${verb-} ]]; then
84 elif __contains_word "$verb" ${VERBS[STANDALONE]}; then
86 elif __contains_word "$verb" ${VERBS[IMAGE]}; then
93 elif __contains_word "$verb" ${VERBS[IMAGES]}; then
96 elif __contains_word "$verb" ${VERBS[IMAGE_WITH_BOOL]}; then
Dbusctl81 local i n verb comps mode
136 verb=${COMP_WORDS[i]}
143 if [[ -z ${verb-} ]]; then
145 elif __contains_word "$verb" ${VERBS[STANDALONE]}; then
147 elif __contains_word "$verb" ${VERBS[BUSNAME]}; then
149 elif __contains_word "$verb" ${VERBS[OBJECT]}; then
159 elif __contains_word "$verb" ${VERBS[METHOD]}; then
173 elif __contains_word "$verb" ${VERBS[EMIT]}; then
175 elif __contains_word "$verb" ${VERBS[PROPERTY_GET]}; then
187 elif __contains_word "$verb" ${VERBS[PROPERTY_SET]}; then
Dbootctl31 local i verb comps
70 verb=${COMP_WORDS[i]}
75 if [[ -z ${verb-} ]]; then
77 elif __contains_word "$verb" ${VERBS[STANDALONE]}; then
79 elif __contains_word "$verb" ${VERBS[BOOTENTRY]}; then
94 elif __contains_word "$verb" ${VERBS[BOOLEAN]}; then
Dhomectl37 local i verb comps
168 verb=${COMP_WORDS[i]}
173 if [[ -z ${verb-} ]]; then
175 elif __contains_word "$verb" ${VERBS[NAME]}; then
177 elif __contains_word "$verb" ${VERBS[NAMES]}; then
179 elif __contains_word "$verb" ${VERBS[STANDALONE]} ${VERBS[CREATE]} ${VERBS[RESIZE]}; then
181 elif __contains_word "$verb" ${VERBS[WITH]}; then
Dmachinectl34 local i verb comps
56 verb=${COMP_WORDS[i]}
98 if [[ -z ${verb-} ]]; then
101 elif __contains_word "$verb" ${VERBS[STANDALONE]}; then
104 elif __contains_word "$verb" ${VERBS[MACHINES]}; then
107 elif __contains_word "$verb" ${VERBS[FILE]}; then
Dnetworkctl32 local i verb comps
49 verb=${COMP_WORDS[i]}
72 if [[ -z ${verb-} ]]; then
74 elif __contains_word "$verb" ${VERBS[STANDALONE]}; then
76 elif __contains_word "$verb" ${VERBS[LINKS]}; then
Dhostnamectl35 local i verb comps
75 verb=${COMP_WORDS[i]}
80 if [[ -z ${verb-} ]]; then
82 elif __contains_word "$verb" ${VERBS[CHASSIS]}; then
84 elif __contains_word "$verb" ${VERBS[STANDALONE]} ${VERBS[ICONS]} ${VERBS[NAME]}; then
Doomctl27 local i verb comps
42 verb=${COMP_WORDS[i]}
47 if [[ -z ${verb-} ]]; then
49 elif __contains_word "$verb" ${VERBS[STANDALONE]}; then
Dsystemd-id12828 local i verb comps
59 verb=${COMP_WORDS[i]}
64 if [[ -z ${verb-} ]]; then
66 elif __contains_word "$verb" ${VERBS[STANDALONE]}; then
Dcoredumpctl39 local i verb comps
81 verb=${COMP_WORDS[i]}
86 if [[ -z ${verb-} ]]; then
88 elif __contains_word "$verb" ${VERBS[LIST]} ${VERBS[DUMP]}; then
/systemd-251/src/integritysetup/
Dintegritysetup.c91 char *verb, *volume; in run() local
100 verb = argv[1]; in run()
109 if (streq(verb, "attach")) { in run()
175 } else if (streq(verb, "detach")) { in run()
198 return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Unknown verb %s.", verb); in run()
/systemd-251/src/veritysetup/
Dveritysetup.c121 const char *verb; in run() local
136 verb = argv[1]; in run()
138 if (streq(verb, "attach")) { in run()
215 } else if (streq(verb, "detach")) { in run()
238 return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Unknown verb %s.", verb); in run()

12