commit f299731
Merge pull request 'Added FreeBSD documentation and rc script' (#96) from draga79/snac2:master into master Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/96
3 files changed,
+26,
-1
+6,
-0
1@@ -40,6 +40,12 @@ On OpenBSD you just need to install `curl`:
2 pkg_add curl
3 ```
4
5+On FreeBSD, to install `curl` just type:
6+
7+```sh
8+pkg install curl
9+```
10+
11 The source code is available [here](https://comam.es/what-is-snac).
12
13 Run `make` and then `make install` as root.
+1,
-1
1@@ -76,7 +76,7 @@ level by editing the 'dbglevel' field in the
2 file or by setting a numeric value between 0 and 3 to the DEBUG
3 environment variable, see below.
4 .Pp
5-If you operate a Linux systemd-enabled system or OpenBSD, there are
6+If you operate a Linux systemd-enabled system, OpenBSD or FreeBSD, there are
7 startup scripts and configuration data in the
8 .Pa examples
9 directory.
+19,
-0
1@@ -0,0 +1,19 @@
2+# PROVIDE: snac
3+# REQUIRE: DAEMON
4+# KEYWORD: shutdown
5+
6+. /etc/rc.subr
7+
8+name="snac"
9+rcvar=snac_enable
10+
11+load_rc_config $name
12+
13+: ${snac_enable:=NO}
14+: ${snac_user:="snac"}
15+: ${snac_args:="httpd SNAC_DATA_PATH"}
16+
17+command="/usr/local/bin/snac"
18+command_args="${snac_args} > /var/log/snac.log 2>&1 &"
19+
20+run_rc_command "$1"