aboutsummaryrefslogtreecommitdiffstats
path: root/src/s6/s6.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-06-18 18:58:34 +0000
committerLaurent Bercot <ska@appnovation.com>2025-06-18 18:58:34 +0000
commit8a6eaed305dbe4ec6a87fe37000f7461bf563937 (patch)
treec80d489ba6852447f56eb805e0ada4005b94b89f /src/s6/s6.c
parent83622b9b37821cccab3c535209200b9ccd2ba6a3 (diff)
downloads6-frontend-8a6eaed305dbe4ec6a87fe37000f7461bf563937.tar.gz
Add a lot of stuff, implement basic service_start
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/s6/s6.c')
-rw-r--r--src/s6/s6.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/s6/s6.c b/src/s6/s6.c
index 8d5295c..2467f3c 100644
--- a/src/s6/s6.c
+++ b/src/s6/s6.c
@@ -42,6 +42,7 @@ enum main_gola_e
MAIN_GOLA_LIVEDIR,
MAIN_GOLA_REPODIR,
MAIN_GOLA_BOOTDIR,
+ MAIN_GOLA_STMPDIR,
MAIN_GOLA_VERBOSITY,
MAIN_GOLA_COLOR,
MAIN_GOLA_N
@@ -60,6 +61,7 @@ static gol_arg const main_gola[MAIN_GOLA_N] =
{ .so = 'l', .lo = "livedir", .i = MAIN_GOLA_LIVEDIR },
{ .so = 'r', .lo = "repodir", .i = MAIN_GOLA_REPODIR },
{ .so = 'b', .lo = "bootdir", .i = MAIN_GOLA_BOOTDIR },
+ { .so = 0, .lo = "stmpdir", .i = MAIN_GOLA_STMPDIR },
{ .so = 'v', .lo = "verbosity", .i = MAIN_GOLA_VERBOSITY },
{ .so = 0, .lo = "color", .i = MAIN_GOLA_COLOR }
} ;
@@ -98,6 +100,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
if (gola[MAIN_GOLA_LIVEDIR]) g->dirs.live = gola[MAIN_GOLA_LIVEDIR] ;
if (gola[MAIN_GOLA_REPODIR]) g->dirs.repo = gola[MAIN_GOLA_REPODIR] ;
if (gola[MAIN_GOLA_BOOTDIR]) g->dirs.boot = gola[MAIN_GOLA_BOOTDIR] ;
+ if (gola[MAIN_GOLA_STMPDIR]) g->dirs.stmp = gola[MAIN_GOLA_STMPDIR] ;
{
int force_color = 0 ;