view man/scid.8 @ 85:cf49ab595e2e default tip @

sciworkerd: avoid spawning several tasks
author David Demelier <markand@malikania.fr>
date Thu, 09 Mar 2023 10:43:48 +0100
parents 71cd8447e3a4
children
line wrap: on
line source

.\"
.\" Copyright (c) 2021-2023 David Demelier <markand@malikania.fr>
.\"
.\" Permission to use, copy, modify, and/or distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd August 04, 2022
.Dt SCID 8
.Os
.\" NAME
.Sh NAME
.Nm scid
.Nd main sci controller daemon
.\" SYNOPSIS
.Sh SYNOPSIS
.Nm
.Op Fl f
.Op Fl d Ar database-file
.Op Fl t Ar theme-directory
.Nm
.Cm api-get
.Nm
.Cm api-reset
.\" DESCRIPTION
.Sh DESCRIPTION
The
.Nm
program is the main controller daemon responsible of the database access and
web content. It opens it, creates if does not exist and then update its
content.
.Pp
After that, it opens a CGI/FastCGI service to get HTTP requests either from a
web browser or through the dedicated
.Xr scictl 1
utility.
.Pp
Usually, you want to setup
.Nm
to run with the associated tool
.Xr kfcgi 8
or any other FastCGI spawner.
.Pp
It is part of the
.Xr sci 7
continuous integration framework.
.Pp
Available options:
.Bl -tag
.It Fl f
Runs as FastCGI process (recommended).
.It Fl d Ar database-file
Use path specified
.Pa database-file
as alternative database location.
.It Fl t Ar theme-directory
Use
.Ar theme-directory
as theme to use.
.El
.Pp
Available commands:
.Bl -tag
.It Cm api-get
Print the configured API key required for
.Xr scictl 8
and
.Xr sciworkerd 8 .
.It Cm api-reset
Reset or create the API key if not already existing in database and print it.
.El
.Pp
Otherwise, if no command is specified run either as CGI or FastCGI service.
.\" SEE ALSO
.Sh SEE ALSO
.Xr sci 7 ,
.Xr scictl 8 ,
.Xr sciworkerd 8