Searched defs:service (Results 1 - 25 of 28) sorted by relevance

12

/systemd/src/rc-local-generator/
H A Drc-local-generator.c41 static int add_symlink(const char *service, const char *where) { argument
45 assert(service);
48 from = strjoin(SYSTEM_DATA_UNIT_PATH, "/", service, NULL);
52 to = strjoin(arg_dest, "/", where, ".wants/", service, NULL);
87 log_debug("Automatically adding rc-local.service.");
89 if (add_symlink("rc-local.service", "multi-user.target") < 0)
94 log_debug("Automatically adding halt-local.service.");
96 if (add_symlink("halt-local.service", "final.target") < 0)
/systemd/src/nspawn/
H A Dnspawn-register.c41 const char *service) {
63 service,
88 service,
111 * systemd-nspawn@.service, to keep the device
29 register_machine( const char *machine_name, pid_t pid, const char *directory, sd_id128_t uuid, int local_ifindex, const char *slice, CustomMount *mounts, unsigned n_mounts, int kill_signal, char **properties, bool keep_unit, const char *service) argument
/systemd/src/core/
H A Dbusname.h48 UnitRef service; member in struct:BusName
H A Dbusname.c34 #include "service.h"
108 unit_ref_unset(&n->service);
180 if (!UNIT_DEREF(n->service)) {
183 r = unit_load_related_unit(u, ".service", &x);
187 unit_ref_set(&n->service, x);
190 r = unit_add_two_dependencies(u, UNIT_BEFORE, UNIT_TRIGGERS, UNIT_DEREF(n->service), true);
213 log_unit_error(UNIT(n), "Name= setting is not a valid service name Refusing.");
589 if (!UNIT_ISSET(n->service)) {
595 r = manager_add_job(UNIT(n)->manager, JOB_START, UNIT_DEREF(n->service), JOB_REPLACE, &error, NULL);
604 log_unit_warning(UNIT(n), "Failed to queue service startu
623 Service *service; local
[all...]
H A Dsocket.h25 #include "service.h"
97 /* For Accept=no sockets refers to the one service we'll
99 when the next service we spawn. */
100 UnitRef service; member in struct:Socket
161 /* Called from the service code when collecting fds */
164 /* Called from the service code when a per-connection service ended */
H A Dservice.h94 Service *service; member in struct:ServiceFDStore
H A Dsocket.c152 unit_ref_unset(&s->service);
208 /* This fills in s->service if it isn't filled in yet. For
209 * Accept=yes sockets we create the next connection service
210 * here. For Accept=no this is mostly a NOP since the service
213 if (UNIT_DEREF(s->service))
223 if (asprintf(&name, "%s@%u.service", prefix, s->n_accepted) < 0)
231 unit_ref_set(&s->service, u);
332 if (!UNIT_DEREF(s->service)) {
335 r = unit_load_related_unit(u, ".service", &x);
339 unit_ref_set(&s->service,
1946 Service *service; local
2068 Service *service; local
[all...]
/systemd/src/login/
H A Dlogind-user.h46 char *service; member in struct:User
H A Dlogind-session.h87 char *service; member in struct:Session
H A Dpam_systemd.c225 *service = NULL, local
262 * background to finish start-up. If the service is
266 pam_get_item(handle, PAM_SERVICE, (const void**) &service);
267 if (streq_ptr(service, "systemd-user")) {
379 "uid="UID_FMT" pid="PID_FMT" service=%s type=%s class=%s desktop=%s seat=%s vtnr=%"PRIu32" tty=%s display=%s remote=%s remote_user=%s remote_host=%s",
381 strempty(service),
396 service,
H A Dloginctl.c292 char *service; member in struct:SessionStatusInfo
326 free(info->service);
427 { "Service", "s", NULL, offsetof(SessionStatusInfo, service) },
507 if (i.service) {
508 printf("\t Service: %s", i.service);
H A Dlogind-dbus.c576 const char *service, *type, *class, *cseat, *tty, *display, *remote_user, *remote_host, *desktop; local
597 r = sd_bus_message_read(message, "uusssssussbss", &uid, &leader, &service, &type, &class, &desktop, &cseat, &vtnr, &tty, &display, &remote, &remote_user, &remote_host);
806 if (!isempty(service)) {
807 session->service = strdup(service);
808 if (!session->service) {
/systemd/src/dbus1-generator/
H A Ddbus1-generator.c38 const char *service,
49 assert(service || exec);
51 if (!service) {
54 s = strjoin("dbus-", name, ".service", NULL);
110 service = s;
134 service);
152 _cleanup_free_ char *name = NULL, *exec = NULL, *user = NULL, *service = NULL; local
158 { "D-BUS Service", "SystemdService", config_parse_string, 0, &service },
182 log_warning("Bus service name %s is not valid, ignoring.", name);
191 if (service) {
35 create_dbus_files( const char *path, const char *name, const char *service, const char *exec, const char *user, const char *type) argument
[all...]
/systemd/src/analyze/
H A Danalyze-verify.c112 /* Cannot run this without the service being around */
122 if (UNIT_ISSET(SOCKET(u)->service)) {
123 Service *service; local
125 service = SERVICE(UNIT_DEREF(SOCKET(u)->service));
126 log_unit_debug(u, "Using %s", UNIT(service)->id);
128 if (UNIT(service)->load_state != UNIT_LOADED) {
129 log_unit_error(u, "Service %s not loaded, %s cannot be started.", UNIT(service)->id, u->id);
/systemd/src/test/
H A Dtest-execute.c40 Service *service = NULL; local
47 service = SERVICE(unit);
49 exec_context_dump(&service->exec_context, stdout, "\t");
51 while (service->state != SERVICE_DEAD && service->state != SERVICE_FAILED) {
64 exec_status_dump(&service->main_exec_status, stdout, "\t");
65 assert_se(service->main_exec_status.status == status_expected);
66 assert_se(service->main_exec_status.code == code_expected);
82 test(m, "exec-workingdirectory.service", 0, CLD_EXITED);
89 test(m, "exec-personality-x86-64.service",
[all...]
H A Dtest-path.c78 Service *service = NULL; local
87 assert_se(tmp = strreplace(unit->id, ".path", ".service"));
92 service = SERVICE(service_unit);
95 /* We process events until the service related to the path has been successfully started */
96 while(service->result != SERVICE_SUCCESS || service->state != SERVICE_START) {
105 service_state_to_string(service->state),
106 service_result_to_string(service->result));
109 /* But we timeout if the service has not been started in the allocated time */
197 check_stop_unlink(m, unit, test_path, "path-mycustomunit.service");
[all...]
/systemd/src/machine/
H A Dmachine.h72 char *service; member in struct:Machine
H A Dmachined-dbus.c257 machine->service,
271 const char *name, *service, *class, *root_directory; local
301 r = sd_bus_message_read(message, "ssus", &service, &class, &leader, &root_directory);
359 if (!isempty(service)) {
360 m->service = strdup(service);
361 if (!m->service) {
/systemd/src/resolve/
H A Dresolved-dns-question.c388 const char *service,
404 * 1. Only a domain is specified, in which case we assume a properly encoded SRV RR name, including service
405 * type and possibly a service name. If specified in this way we assume it's already IDNA converted if
408 * 2. Both service type and a domain specified, in which case a normal SRV RR is assumed, without a DNS-SD
411 * 3. All three of service name, type and domain are specified, in which case a DNS-SD service is put
412 * together. The service name is never IDNA converted, and the domain is if requested.
414 * It's not supported to specify a service name without a type, or no domain name.
429 r = dns_service_join(service, type, domain, &joined);
435 if (service)
386 dns_question_new_service( DnsQuestion **ret, const char *service, const char *type, const char *domain, bool with_txt, bool convert_idna) argument
[all...]
/systemd/src/socket-proxy/
H A Dsocket-proxyd.c402 const char *node, *service; local
427 service = strrchr(arg_remote_host, ':');
428 if (service) {
429 node = strndupa(arg_remote_host, service - arg_remote_host);
430 service ++;
433 service = "80";
436 log_debug("Looking up address info for %s:%s", node, service);
437 r = sd_resolve_getaddrinfo(c->context->resolve, &c->resolve_query, node, service, &hints, resolve_cb, c);
/systemd/src/run/
H A Drun.c85 "Run the specified command in a transient scope or service or timer\n"
94 " --scope Run this as scope rather than service\n"
100 " -r --remain-after-exit Leave service around until explicitly stopped\n"
102 " --service-type=TYPE Service type\n"
107 " -t --pty Run service on pseudo tty\n"
165 { "service-type", required_argument, NULL, ARG_SERVICE_TYPE },
387 log_error("--remain-after-exit and --service-type= are not supported in --scope mode.");
736 _cleanup_free_ char *service = NULL, *pty_path = NULL; local
802 r = unit_name_mangle_with_suffix(arg_unit, UNIT_NAME_NOGLOB, ".service", &service);
1055 _cleanup_free_ char *timer = NULL, *service = NULL; local
[all...]
/systemd/src/sysv-generator/
H A Dsysv-generator.c118 static int add_symlink(const char *service, const char *where) { argument
122 assert(service);
125 from = strjoina(arg_dest, "/", service);
126 to = strjoina(arg_dest, "/", where, ".wants/", service);
141 static int add_alias(const char *service, const char *alias) { argument
145 assert(service);
150 r = symlink(service, link);
178 log_warning("Overwriting existing symlink %s with real service.", unit);
313 * out whether something is a target or a service alias. */
336 /* Everything else we assume to be normal service name
809 SysvStub *service; local
948 SysvStub *service; local
[all...]
/systemd/src/libsystemd/sd-login/
H A Dsd-login.c595 _public_ int sd_session_get_service(const char *session, char **service) { argument
596 return session_get_string(session, "SERVICE", service);
/systemd/src/libsystemd/sd-bus/
H A Dbusctl.c330 static int find_nodes(sd_bus *bus, const char *service, const char *path, Set *paths, bool many) { argument
340 r = sd_bus_call_method(bus, service, path, "org.freedesktop.DBus.Introspectable", "Introspect", &error, &reply, "");
343 printf("Failed to introspect object %s of service %s: %s\n", path, service, bus_error_message(&error, r));
345 log_error("Failed to introspect object %s of service %s: %s", path, service, bus_error_message(&error, r));
356 static int tree_one(sd_bus *bus, const char *service, const char *prefix, bool many) { argument
396 q = find_nodes(bus, service, p, paths, many);
881 log_error("Requires service and object path argument.");
896 log_error("Failed to introspect object %s of service
[all...]
/systemd/src/libsystemd/sd-resolve/
H A Dsd-resolve.c341 const char *node, *service; local
353 service = ai_req->service_len ? (const char*) ai_req + sizeof(AddrInfoRequest) + ai_req->node_len : NULL;
356 node, service,
937 const char *node, const char *service,
948 assert_return(node || service, -EINVAL);
961 req.service_len = service ? strlen(service)+1 : 0;
978 if (service)
979 iov[mh.msg_iovlen++] = (struct iovec) { .iov_base = (void*) service, .iov_len = req.service_len };
934 sd_resolve_getaddrinfo( sd_resolve *resolve, sd_resolve_query **_q, const char *node, const char *service, const struct addrinfo *hints, sd_resolve_getaddrinfo_handler_t callback, void *userdata) argument

Completed in 93 milliseconds

12