diff options
author | grunfink <grunfink@noreply.codeberg.org> | 2024-01-03 15:15:00 +0000 |
---|---|---|
committer | grunfink <grunfink@noreply.codeberg.org> | 2024-01-03 15:15:00 +0000 |
commit | f299731bb7f7a0ba5d10074ae6455751860ef8ce (patch) | |
tree | 7c534137133fbfa6a98952509aadc08afa01be04 | |
parent | 6fe31dd7255f85231031851778aa139690604b18 (diff) | |
parent | 746db4047d7f235698775b227134bfe2405a98d2 (diff) |
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
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | doc/snac.8 | 2 | ||||
-rw-r--r-- | examples/snac_freebsd | 19 |
3 files changed, 26 insertions, 1 deletions
@@ -40,6 +40,12 @@ On OpenBSD you just need to install `curl`: pkg_add curl ``` +On FreeBSD, to install `curl` just type: + +```sh +pkg install curl +``` + The source code is available [here](https://comam.es/what-is-snac). Run `make` and then `make install` as root. @@ -76,7 +76,7 @@ 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 operate a Linux systemd-enabled system or OpenBSD, there are +If you operate a Linux systemd-enabled system, OpenBSD or FreeBSD, there are startup scripts and configuration data in the .Pa examples directory. diff --git a/examples/snac_freebsd b/examples/snac_freebsd new file mode 100644 index 0000000..d908b6e --- /dev/null +++ b/examples/snac_freebsd @@ -0,0 +1,19 @@ +# PROVIDE: snac +# REQUIRE: DAEMON +# KEYWORD: shutdown + +. /etc/rc.subr + +name="snac" +rcvar=snac_enable + +load_rc_config $name + +: ${snac_enable:=NO} +: ${snac_user:="snac"} +: ${snac_args:="httpd SNAC_DATA_PATH"} + +command="/usr/local/bin/snac" +command_args="${snac_args} > /var/log/snac.log 2>&1 &" + +run_rc_command "$1"
\ No newline at end of file |