mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
Updated documentation.
This commit is contained in:
parent
86fb715be5
commit
1791e05346
1 changed files with 4 additions and 28 deletions
32
doc/snac.8
32
doc/snac.8
|
@ -63,34 +63,10 @@ level by editing the 'dbglevel' field in the
|
|||
file or by setting a numeric value between 0 and 3 to the DEBUG
|
||||
environment variable, see below.
|
||||
.Pp
|
||||
If you run
|
||||
.Nm
|
||||
in an OS controlled by
|
||||
.Xr systemd 1 ,
|
||||
you can prepare a user service to start/stop the daemon. Following the
|
||||
previous example, create the file
|
||||
.Pa ~/.config/systemd/user/snac.service
|
||||
with the following content:
|
||||
.Bd -literal -offset indent
|
||||
[Unit]
|
||||
Description=snac daemon
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
ExecStart=/usr/local/bin/snac httpd /path/to/snac-data
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
.Ed
|
||||
.Pp
|
||||
And activate it by running
|
||||
.Bd -literal -offset indent
|
||||
systemctl --user enable snac.service
|
||||
systemctl --user start snac.service
|
||||
.Ed
|
||||
.Pp
|
||||
If you operate a Linux systemd-enabled system or OpenBSD, there are
|
||||
startup scripts and configuration data in the
|
||||
.Pa examples
|
||||
directory.
|
||||
For other operating systems, please read the appropriate documentation
|
||||
on how to install a daemon as a non-root service.
|
||||
.Ss Server Setup
|
||||
|
|
Loading…
Reference in a new issue