mirror of
https://github.com/troglobit/finit.git
synced 2026-10-14 10:19:36 +00:00
Minor, rename LOGIT_PATH -> _PATH_LOGIT for consistency
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
26128dd788
commit
96534789db
2 files changed
+5
-5
No files matched your search
+1
-1
@@ -50,7 +50,7 @@
|
||||
#define FINIT_CGPATH "/sys/fs/cgroup"
|
||||
#endif
|
||||
|
||||
#define LOGIT_PATH FINIT_LIBPATH_ "/logit"
|
||||
#define _PATH_LOGIT FINIT_LIBPATH_ "/logit"
|
||||
|
||||
#define CMD_SIZE 256
|
||||
#define LINE_SIZE 1024
|
||||
|
||||
+4
-4
@@ -206,8 +206,8 @@ static int lredirect(svc_t *svc)
|
||||
/* Reset signals */
|
||||
sig_unblock();
|
||||
|
||||
if (!whichp(LOGIT_PATH)) {
|
||||
logit(LOG_INFO, LOGIT_PATH " missing, using syslog for %s instead", svc->name);
|
||||
if (!whichp(_PATH_LOGIT)) {
|
||||
logit(LOG_INFO, _PATH_LOGIT " missing, using syslog for %s instead", svc->name);
|
||||
fallback_logger(tag, prio);
|
||||
_exit(0);
|
||||
}
|
||||
@@ -218,7 +218,7 @@ static int lredirect(svc_t *svc)
|
||||
snprintf(sz, sizeof(sz), "%d", logfile_size_max);
|
||||
snprintf(num, sizeof(num), "%d", logfile_count_max);
|
||||
|
||||
execlp(LOGIT_PATH, "logit", "-f", svc->log.file, "-n", sz, "-r", num, NULL);
|
||||
execlp(_PATH_LOGIT, "logit", "-f", svc->log.file, "-n", sz, "-r", num, NULL);
|
||||
_exit(1);
|
||||
}
|
||||
|
||||
@@ -227,7 +227,7 @@ static int lredirect(svc_t *svc)
|
||||
if (svc->log.prio[0])
|
||||
prio = svc->log.prio;
|
||||
|
||||
execlp(LOGIT_PATH, "logit", "-t", tag, "-p", prio, NULL);
|
||||
execlp(_PATH_LOGIT, "logit", "-t", tag, "-p", prio, NULL);
|
||||
_exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user