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