Lines Matching refs:Service

101 static void service_enter_signal(Service *s, ServiceState state, ServiceResult f);
102 static void service_enter_reload_by_notify(Service *s);
105 Service *s = SERVICE(u);
123 static void service_unwatch_control_pid(Service *s) {
133 static void service_unwatch_main_pid(Service *s) {
143 static void service_unwatch_pid_file(Service *s) {
153 static int service_set_main_pid(Service *s, pid_t pid) {
184 static void service_close_socket_fd(Service *s) {
190 static void service_connection_unref(Service *s) {
200 static void service_stop_watchdog(Service *s) {
207 static void service_start_watchdog(Service *s) {
246 static void service_reset_watchdog(Service *s) {
275 Service *s = SERVICE(u);
295 Service *s = SERVICE(u);
348 static int service_add_fd_store(Service *s, int fd, const char *name) {
396 static int service_add_fd_store_set(Service *s, FDSet *fds, const char *name) {
426 static int service_arm_timer(Service *s, usec_t usec) {
456 static int service_verify(Service *s) {
463 log_unit_error(UNIT(s), "Service lacks both ExecStart= and ExecStop= setting. Refusing.");
468 log_unit_error(UNIT(s), "Service has no ExecStart= setting, which is only allowed for Type=oneshot services. Refusing.");
473 log_unit_error(UNIT(s), "Service has no ExecStart= setting, which is only allowed for RemainAfterExit=yes services. Refusing.");
478 log_unit_error(UNIT(s), "Service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing.");
483 log_unit_error(UNIT(s), "Service has Restart= setting other than no, which isn't allowed for Type=oneshot services. Refusing.");
488 log_unit_error(UNIT(s), "Service has RestartForceStatus= set, which isn't allowed for Type=oneshot services. Refusing.");
493 log_unit_error(UNIT(s), "Service is of type D-Bus but no D-Bus service name has been specified. Refusing.");
498 log_unit_warning(UNIT(s), "Service has a D-Bus service name specified, but is not of type dbus. Ignoring.");
501 log_unit_error(UNIT(s), "Service has PAM enabled. Kill mode must be set to 'control-group' or 'mixed'. Refusing.");
506 log_unit_warning(UNIT(s), "Service has USBFunctionDescriptors= setting, but no USBFunctionStrings=. Ignoring.");
509 log_unit_warning(UNIT(s), "Service has USBFunctionStrings= setting, but no USBFunctionDescriptors=. Ignoring.");
517 static int service_add_default_dependencies(Service *s) {
557 static void service_fix_output(Service *s) {
575 static int service_setup_bus_name(Service *s) {
612 static int service_add_extras(Service *s) {
663 Service *s = SERVICE(u);
698 Service *s = SERVICE(u);
782 static int service_load_pid_file(Service *s, bool may_warn) {
837 static int service_search_main_pid(Service *s) {
872 static void service_set_state(Service *s, ServiceState state) {
960 static usec_t service_coldplug_timeout(Service *s) {
992 Service *s = SERVICE(u);
1040 static int service_collect_fds(Service *s, int **fds, char ***fd_names) {
1149 Service *s,
1320 static int main_pid_good(Service *s) {
1345 _pure_ static int control_pid_good(Service *s) {
1351 static int cgroup_good(Service *s) {
1366 static bool service_shall_restart(Service *s) {
1409 static void service_enter_dead(Service *s, ServiceResult f, bool allow_restart) {
1455 static void service_enter_stop_post(Service *s, ServiceResult f) {
1511 static void service_enter_signal(Service *s, ServiceState state, ServiceResult f) {
1558 static void service_enter_stop_by_notify(Service *s) {
1569 static void service_enter_stop(Service *s, ServiceResult f) {
1607 static bool service_good(Service *s) {
1627 static void service_enter_running(Service *s, ServiceResult f) {
1654 static void service_enter_start_post(Service *s) {
1688 static void service_kill_control_processes(Service *s) {
1698 static void service_enter_start(Service *s) {
1787 static void service_enter_start_pre(Service *s) {
1825 static void service_enter_restart(Service *s) {
1862 static void service_enter_reload_by_notify(Service *s) {
1869 static void service_enter_reload(Service *s) {
1905 static void service_run_next_control(Service *s) {
1954 static void service_run_next_main(Service *s) {
1988 Service *s = SERVICE(u);
2032 Service *s = SERVICE(u);
2065 Service *s = SERVICE(u);
2076 Service *s = SERVICE(u);
2084 Service *s = SERVICE(u);
2166 Service *s = SERVICE(u);
2388 Service *s = SERVICE(u);
2402 static int service_retry_pid_file(Service *s) {
2418 static int service_watch_pid_file(Service *s) {
2438 static int service_demand_pid_file(Service *s) {
2469 Service *s;
2501 Service *s = SERVICE(u);
2558 Service *s = SERVICE(u);
2844 Service *s = SERVICE(userdata);
2863 log_unit_warning(UNIT(s), "Service reached runtime time limit. Stopping.");
2928 "Service hold-off time over, scheduling restart." :
2929 "Service has no hold-off time, scheduling restart.");
2941 Service *s = SERVICE(userdata);
2956 Service *s = SERVICE(u);
3091 Service *s = SERVICE(u);
3114 Service *s = SERVICE(u);
3172 int service_set_socket_fd(Service *s, int fd, Socket *sock, bool selinux_context_net) {
3218 Service *s = SERVICE(u);
3230 Service *s = SERVICE(u);
3299 .object_size = sizeof(Service),
3300 .exec_context_offset = offsetof(Service, exec_context),
3301 .cgroup_context_offset = offsetof(Service, cgroup_context),
3302 .kill_context_offset = offsetof(Service, kill_context),
3303 .exec_runtime_offset = offsetof(Service, exec_runtime),
3307 "Service\0"
3309 .private_section = "Service",