summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2022-10-04 11:32:52 +0200
committerGravatar default2022-10-04 11:32:52 +0200
commit1791e05346613ff1858689bdb1c8385eb4d8a0c7 (patch)
tree3af8c3933ce3e43a6352210bd46a9f22471c330a
parent[examples/snac_openbsd] new file. (diff)
downloadpenes-snac2-1791e05346613ff1858689bdb1c8385eb4d8a0c7.tar.gz
penes-snac2-1791e05346613ff1858689bdb1c8385eb4d8a0c7.tar.xz
penes-snac2-1791e05346613ff1858689bdb1c8385eb4d8a0c7.zip
Updated documentation.
-rw-r--r--doc/snac.832
1 files changed, 4 insertions, 28 deletions
diff --git a/doc/snac.8 b/doc/snac.8
index a463cdc..4757092 100644
--- a/doc/snac.8
+++ b/doc/snac.8
@@ -63,34 +63,10 @@ level by editing the 'dbglevel' field in the
63file or by setting a numeric value between 0 and 3 to the DEBUG 63file or by setting a numeric value between 0 and 3 to the DEBUG
64environment variable, see below. 64environment variable, see below.
65.Pp 65.Pp
66If you run 66If you operate a Linux systemd-enabled system or OpenBSD, there are
67.Nm 67startup scripts and configuration data in the
68in an OS controlled by 68.Pa examples
69.Xr systemd 1 , 69directory.
70you can prepare a user service to start/stop the daemon. Following the
71previous example, create the file
72.Pa ~/.config/systemd/user/snac.service
73with the following content:
74.Bd -literal -offset indent
75[Unit]
76Description=snac daemon
77
78[Service]
79Type=simple
80Restart=always
81RestartSec=5
82ExecStart=/usr/local/bin/snac httpd /path/to/snac-data
83
84[Install]
85WantedBy=default.target
86.Ed
87.Pp
88And activate it by running
89.Bd -literal -offset indent
90systemctl --user enable snac.service
91systemctl --user start snac.service
92.Ed
93.Pp
94For other operating systems, please read the appropriate documentation 70For other operating systems, please read the appropriate documentation
95on how to install a daemon as a non-root service. 71on how to install a daemon as a non-root service.
96.Ss Server Setup 72.Ss Server Setup