]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/core/load-fragment.h
core: log about /var/run/ prefix used in PIDFile=, patch it to be /run instead
[thirdparty/systemd.git] / src / core / load-fragment.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
c2f1db8f 2#pragma once
3efd4195 3
a2106925 4#include "conf-parser.h"
87f0e418 5#include "unit.h"
3efd4195
LP
6
7/* Read service data from .desktop file style configuration fragments */
8
e537352b
LP
9int unit_load_fragment(Unit *u);
10
11void unit_dump_config_items(FILE *f);
3efd4195 12
a2106925
LP
13CONFIG_PARSER_PROTOTYPE(config_parse_unit_deps);
14CONFIG_PARSER_PROTOTYPE(config_parse_obsolete_unit_deps);
15CONFIG_PARSER_PROTOTYPE(config_parse_unit_string_printf);
16CONFIG_PARSER_PROTOTYPE(config_parse_unit_strv_printf);
17CONFIG_PARSER_PROTOTYPE(config_parse_unit_path_printf);
18CONFIG_PARSER_PROTOTYPE(config_parse_unit_path_strv_printf);
19CONFIG_PARSER_PROTOTYPE(config_parse_documentation);
20CONFIG_PARSER_PROTOTYPE(config_parse_socket_listen);
21CONFIG_PARSER_PROTOTYPE(config_parse_socket_protocol);
22CONFIG_PARSER_PROTOTYPE(config_parse_socket_bind);
23CONFIG_PARSER_PROTOTYPE(config_parse_exec_nice);
24CONFIG_PARSER_PROTOTYPE(config_parse_exec_oom_score_adjust);
25CONFIG_PARSER_PROTOTYPE(config_parse_exec);
26CONFIG_PARSER_PROTOTYPE(config_parse_service_timeout);
27CONFIG_PARSER_PROTOTYPE(config_parse_service_type);
28CONFIG_PARSER_PROTOTYPE(config_parse_service_restart);
29CONFIG_PARSER_PROTOTYPE(config_parse_socket_bindtodevice);
30CONFIG_PARSER_PROTOTYPE(config_parse_exec_output);
31CONFIG_PARSER_PROTOTYPE(config_parse_exec_input);
32CONFIG_PARSER_PROTOTYPE(config_parse_exec_input_text);
33CONFIG_PARSER_PROTOTYPE(config_parse_exec_input_data);
34CONFIG_PARSER_PROTOTYPE(config_parse_exec_io_class);
35CONFIG_PARSER_PROTOTYPE(config_parse_exec_io_priority);
36CONFIG_PARSER_PROTOTYPE(config_parse_exec_cpu_sched_policy);
37CONFIG_PARSER_PROTOTYPE(config_parse_exec_cpu_sched_prio);
38CONFIG_PARSER_PROTOTYPE(config_parse_exec_cpu_affinity);
39CONFIG_PARSER_PROTOTYPE(config_parse_exec_secure_bits);
40CONFIG_PARSER_PROTOTYPE(config_parse_capability_set);
a2106925 41CONFIG_PARSER_PROTOTYPE(config_parse_kill_signal);
fbb48d4c 42CONFIG_PARSER_PROTOTYPE(config_parse_final_kill_signal);
a2106925
LP
43CONFIG_PARSER_PROTOTYPE(config_parse_exec_mount_flags);
44CONFIG_PARSER_PROTOTYPE(config_parse_timer);
45CONFIG_PARSER_PROTOTYPE(config_parse_trigger_unit);
46CONFIG_PARSER_PROTOTYPE(config_parse_path_spec);
47CONFIG_PARSER_PROTOTYPE(config_parse_socket_service);
48CONFIG_PARSER_PROTOTYPE(config_parse_service_sockets);
49CONFIG_PARSER_PROTOTYPE(config_parse_unit_env_file);
50CONFIG_PARSER_PROTOTYPE(config_parse_ip_tos);
51CONFIG_PARSER_PROTOTYPE(config_parse_unit_condition_path);
52CONFIG_PARSER_PROTOTYPE(config_parse_unit_condition_string);
53CONFIG_PARSER_PROTOTYPE(config_parse_unit_condition_null);
54CONFIG_PARSER_PROTOTYPE(config_parse_kill_mode);
55CONFIG_PARSER_PROTOTYPE(config_parse_notify_access);
56CONFIG_PARSER_PROTOTYPE(config_parse_emergency_action);
57CONFIG_PARSER_PROTOTYPE(config_parse_unit_requires_mounts_for);
58CONFIG_PARSER_PROTOTYPE(config_parse_syscall_filter);
59CONFIG_PARSER_PROTOTYPE(config_parse_syscall_archs);
60CONFIG_PARSER_PROTOTYPE(config_parse_syscall_errno);
61CONFIG_PARSER_PROTOTYPE(config_parse_environ);
62CONFIG_PARSER_PROTOTYPE(config_parse_pass_environ);
63CONFIG_PARSER_PROTOTYPE(config_parse_unset_environ);
64CONFIG_PARSER_PROTOTYPE(config_parse_unit_slice);
984faf29 65CONFIG_PARSER_PROTOTYPE(config_parse_cg_weight);
a2106925
LP
66CONFIG_PARSER_PROTOTYPE(config_parse_cpu_shares);
67CONFIG_PARSER_PROTOTYPE(config_parse_memory_limit);
68CONFIG_PARSER_PROTOTYPE(config_parse_tasks_max);
69CONFIG_PARSER_PROTOTYPE(config_parse_delegate);
70CONFIG_PARSER_PROTOTYPE(config_parse_device_policy);
71CONFIG_PARSER_PROTOTYPE(config_parse_device_allow);
6ae4283c 72CONFIG_PARSER_PROTOTYPE(config_parse_io_device_latency);
a2106925
LP
73CONFIG_PARSER_PROTOTYPE(config_parse_io_device_weight);
74CONFIG_PARSER_PROTOTYPE(config_parse_io_limit);
75CONFIG_PARSER_PROTOTYPE(config_parse_blockio_weight);
76CONFIG_PARSER_PROTOTYPE(config_parse_blockio_device_weight);
77CONFIG_PARSER_PROTOTYPE(config_parse_blockio_bandwidth);
78CONFIG_PARSER_PROTOTYPE(config_parse_netclass);
79CONFIG_PARSER_PROTOTYPE(config_parse_job_mode);
80CONFIG_PARSER_PROTOTYPE(config_parse_job_mode_isolate);
81CONFIG_PARSER_PROTOTYPE(config_parse_exec_selinux_context);
82CONFIG_PARSER_PROTOTYPE(config_parse_exec_apparmor_profile);
83CONFIG_PARSER_PROTOTYPE(config_parse_exec_smack_process_label);
84CONFIG_PARSER_PROTOTYPE(config_parse_address_families);
85CONFIG_PARSER_PROTOTYPE(config_parse_runtime_preserve_mode);
86CONFIG_PARSER_PROTOTYPE(config_parse_exec_directories);
87CONFIG_PARSER_PROTOTYPE(config_parse_set_status);
88CONFIG_PARSER_PROTOTYPE(config_parse_namespace_path_strv);
89CONFIG_PARSER_PROTOTYPE(config_parse_temporary_filesystems);
a2106925
LP
90CONFIG_PARSER_PROTOTYPE(config_parse_cpu_quota);
91CONFIG_PARSER_PROTOTYPE(config_parse_protect_home);
92CONFIG_PARSER_PROTOTYPE(config_parse_protect_system);
93CONFIG_PARSER_PROTOTYPE(config_parse_bus_name);
94CONFIG_PARSER_PROTOTYPE(config_parse_exec_utmp_mode);
95CONFIG_PARSER_PROTOTYPE(config_parse_working_directory);
96CONFIG_PARSER_PROTOTYPE(config_parse_fdname);
97CONFIG_PARSER_PROTOTYPE(config_parse_sec_fix_0);
98CONFIG_PARSER_PROTOTYPE(config_parse_user_group);
99CONFIG_PARSER_PROTOTYPE(config_parse_user_group_strv);
100CONFIG_PARSER_PROTOTYPE(config_parse_restrict_namespaces);
101CONFIG_PARSER_PROTOTYPE(config_parse_bind_paths);
102CONFIG_PARSER_PROTOTYPE(config_parse_exec_keyring_mode);
103CONFIG_PARSER_PROTOTYPE(config_parse_job_timeout_sec);
104CONFIG_PARSER_PROTOTYPE(config_parse_job_running_timeout_sec);
105CONFIG_PARSER_PROTOTYPE(config_parse_log_extra_fields);
106CONFIG_PARSER_PROTOTYPE(config_parse_collect_mode);
a9353a5c 107CONFIG_PARSER_PROTOTYPE(config_parse_pid_file);
f975e971
LP
108
109/* gperf prototypes */
c9f7b4d3 110const struct ConfigPerfItem* load_fragment_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
f975e971 111extern const char load_fragment_gperf_nulstr[];