status = f_string_append(controller_path_pid_init, controller_path_pid_init_length, &setting.path_pid);
}
else {
- status = f_string_append(controller_path_pid, controller_path_pid_length, &setting.path_pid);
+ status = f_string_append(main->path_pid.string, main->path_pid.used, &setting.path_pid);
}
if (F_status_is_error_not(status)) {
#if defined(_override_controller_path_pid_init_) && defined(_override_controller_path_pid_init_length_)
#define controller_path_pid_init _override_controller_path_pid_init_
#define controller_path_pid_init_length _override_controller_path_pid_init_length_
+ #elif defined(_controller_as_init_)
+ #define controller_path_pid_init "/var/run/init/init-"
+ #define controller_path_pid_init_length 19
#else
#define controller_path_pid_init "/var/run/controller/controller-"
#define controller_path_pid_init_length 31
#if defined(_override_controller_path_settings_init_) && defined(_override_controller_path_settings_init_length_)
#define controller_path_settings_init _override_controller_path_settings_init_
#define controller_path_settings_init_length _override_controller_path_settings_init_length_
+ #elif defined(_controller_as_init_)
+ #define controller_path_settings_init "/etc/init"
+ #define controller_path_settings_init_length 9
#else
#define controller_path_settings_init "/etc/controller"
#define controller_path_settings_init_length 15
f_string_t program_name;
f_string_t program_name_long;
f_string_static_t setting_default;
+ f_string_static_t path_pid;
f_color_context_t context;
} controller_main_t;
f_string_t_initialize, \
f_string_t_initialize, \
f_string_static_t_initialize, \
+ f_string_static_t_initialize, \
f_color_context_t_initialize, \
}
#endif // _di_controller_main_t_
data.program_name_long = controller_name_init_long;
data.setting_default.string = controller_path_settings_init;
data.setting_default.used = controller_path_settings_init_length;
+ data.path_pid.string = controller_path_pid_init;
+ data.path_pid.used = controller_path_pid_init_length;
#else // _controller_as_init_
data.program_name = controller_name;
data.program_name_long = controller_name_long;
+ data.path_pid.string = controller_path_pid;
+ data.path_pid.used = controller_path_pid_length;
#endif // _controller_as_init_
status = controller_main(arguments, &data);