mirror of
https://github.com/troglobit/finit.git
synced 2026-10-12 10:12:32 +00:00
Fix various typos found by codepsell
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -562,7 +562,7 @@ static void api_cb(uev_t *w, void *arg, int events)
|
||||
}
|
||||
|
||||
if (uev_io_init(ctx, &svc->notify_watcher, service_notify_cb, svc, sd, UEV_READ)) {
|
||||
err(1, "Falied initializing %s readiness notifier", svc_ident(svc, NULL, 0));
|
||||
err(1, "Failed initializing %s readiness notifier", svc_ident(svc, NULL, 0));
|
||||
break;
|
||||
}
|
||||
return; /* Don't close sd, used for notify */
|
||||
|
||||
+1
-1
@@ -476,7 +476,7 @@ void cgroup_init(uev_ctx_t *ctx)
|
||||
if (mount("none", FINIT_CGPATH, "cgroup2", opts, NULL)) {
|
||||
if (errno == ENOENT)
|
||||
logit(LOG_INFO, "Kernel does not support cgroups v2, disabling.");
|
||||
else if (errno == EPERM) /* Probably inside an unpriviliged container */
|
||||
else if (errno == EPERM) /* Probably inside an unprivileged container */
|
||||
logit(LOG_INFO, "Not allowed to mount cgroups v2, disabling.");
|
||||
else
|
||||
err(1, "Failed mounting cgroup v2");
|
||||
|
||||
+1
-1
@@ -113,7 +113,7 @@ static void cond_boot_strap(void)
|
||||
*
|
||||
* => 'pid/' + 'teamd' + '' = condition <pid/teamd>
|
||||
*
|
||||
* When you add a second aggrate you need to tell Finit it's a different
|
||||
* When you add a second aggregate you need to tell Finit it's a different
|
||||
* instance usugin the :ID syntax:
|
||||
*
|
||||
* service :lag2 teamd -f /etc/teamd/lag2.conf -- Aggregate lag2
|
||||
|
||||
+1
-1
@@ -66,7 +66,7 @@ int prevlevel = -1;
|
||||
int debug = 0; /* debug mode from kernel cmdline */
|
||||
int rescue = 0; /* rescue mode from kernel cmdline */
|
||||
int single = 0; /* single user mode from kernel cmdline */
|
||||
int bootstrap = 1; /* set while bootrapping (for TTYs) */
|
||||
int bootstrap = 1; /* set while bootstrapping (for TTYs) */
|
||||
int kerndebug = 0; /* set if /proc/sys/kernel/printk > 7 */
|
||||
int syncsec = 0; /* reboot delay */
|
||||
int readiness = SVC_NOTIFY_PID;
|
||||
|
||||
+1
-1
@@ -87,7 +87,7 @@ void console_init(void)
|
||||
/* Enable line wrap, if disabled previously, e.g., qemu */
|
||||
dprint(STDOUT_FILENO, "\033[?7h", 5);
|
||||
|
||||
/* Reset atttributes, background and foreground color */
|
||||
/* Reset attributes, background and foreground color */
|
||||
dprint(STDOUT_FILENO, "\033[49m\033[39m\e[2J", 14);
|
||||
|
||||
log_init();
|
||||
|
||||
@@ -192,7 +192,7 @@ int pid_file_set(svc_t *svc, char *file, int not)
|
||||
* pid:foo.tla --> /run/foo.tla.pid
|
||||
* pid:/tmp/foo --> /tmp/foo.pid (Not handled by pidfile plugin!)
|
||||
*
|
||||
* An exclamation mark, or logial NOT, in the first character position
|
||||
* An exclamation mark, or logical NOT, in the first character position
|
||||
* indicates that Finit should *not* manage the PID file, and that the
|
||||
* process uses a "non-standard" location. Eg. if service is 'bar'
|
||||
* Finit would assume the PID file is /run/bar.pid and the below simply
|
||||
|
||||
+2
-2
@@ -2214,7 +2214,7 @@ static void service_post_script(svc_t *svc)
|
||||
}
|
||||
|
||||
/*
|
||||
* Unlike the pre: and post: scripts, the ready: script cannot re-use
|
||||
* Unlike the pre: and post: scripts, the ready: script cannot reuse
|
||||
* svc->pid, so instead we use an assoc. list for matching any scripts
|
||||
* related to the svc, handled by service_script_add() below. When a
|
||||
* ready: script is reaped the service_monitor() checks first for the
|
||||
@@ -2940,7 +2940,7 @@ void service_notify_cb(uev_t *w, void *arg, int events)
|
||||
*
|
||||
* This does not affect the restart_tot counter, which you can see in
|
||||
* the output from 'initctl status foo', along with this instability
|
||||
* "index" in parethesis: total (cnt/max)
|
||||
* "index" in parenthesis: total (cnt/max)
|
||||
*/
|
||||
static void service_interval_cb(uev_t *w, void *arg, int events)
|
||||
{
|
||||
|
||||
@@ -243,7 +243,7 @@ restart:
|
||||
/* Disable progress output at normal runtime */
|
||||
enable_progress(0);
|
||||
|
||||
/* System bootrapped, launch TTYs et al */
|
||||
/* System bootstrapped, launch TTYs et al */
|
||||
bootstrap = 0;
|
||||
service_step_all(SVC_TYPE_RESPAWN);
|
||||
sm->state = SM_RUNNING_STATE;
|
||||
|
||||
@@ -148,7 +148,7 @@ typedef struct svc {
|
||||
char cond[MAX_COND_LEN];
|
||||
|
||||
/* Instance specifics */
|
||||
int job; /* For intenal use only, canonical ref is NAME:ID */
|
||||
int job; /* For internal use only, canonical ref is NAME:ID */
|
||||
char name[MAX_ARG_LEN];
|
||||
char id[MAX_ID_LEN]; /* :ID */
|
||||
char ifstmt[MAX_IDENT_LEN];
|
||||
|
||||
Reference in New Issue
Block a user