fiss

Friedel's Initialization and Service Supervision
Log | Files | Refs | LICENSE

commit 3c278031a4109591ed02afe7925f1d255aedbdcc
parent 4f77897714255adca929d603c80c1cbbf4b03fbe
Author: Friedel Schön <[email protected]>
Date:   Mon, 22 May 2023 20:42:36 +0200

fixing autostart-file not recognized

Diffstat:
Msrc/register.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/register.c b/src/register.c @@ -61,8 +61,8 @@ service_t* service_register(int dir, const char* name, bool is_log_service) { strcat(up_path, runlevel); strcat(once_path, runlevel); - autostart = fstatat(s->dir, up_path, &st, 0) == -1 && S_ISREG(st.st_mode); - autostart_once = fstatat(s->dir, once_path, &st, 0) == -1 && S_ISREG(st.st_mode); + autostart = fstatat(s->dir, up_path, &st, 0) != -1 && S_ISREG(st.st_mode); + autostart_once = fstatat(s->dir, once_path, &st, 0) != -1 && S_ISREG(st.st_mode); s->restart_file = S_DOWN;