Lines Matching defs:service
85 "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;
802 r = unit_name_mangle_with_suffix(arg_unit, UNIT_NAME_NOGLOB, ".service", &service);
806 r = make_unit_name(bus, UNIT_SERVICE, &service);
826 r = sd_bus_message_append(m, "ss", service, "fail");
852 return log_error_errno(r, "Failed to start transient service unit: %s", bus_error_message(&error, r));
881 log_info("Running as unit %s.\nPress ^] three times within 1s to disconnect TTY.", service);
899 log_info("Running as unit %s.", service);
1055 _cleanup_free_ char *timer = NULL, *service = NULL;
1070 service = strdup(arg_unit);
1071 if (!service)
1074 r = unit_name_change_suffix(service, ".timer", &timer);
1084 r = unit_name_change_suffix(timer, ".service", &service);
1090 r = unit_name_mangle_with_suffix(arg_unit, UNIT_NAME_NOGLOB, ".service", &service);
1101 r = make_unit_name(bus, UNIT_SERVICE, &service);
1105 r = unit_name_change_suffix(service, ".timer", &timer);
1151 r = sd_bus_message_append(m, "s", service);
1194 log_info("Will run service as unit %s.", service);