From f94cfcc5d2f1a96651fac000fb12f9f8f894946b Mon Sep 17 00:00:00 2001 From: draga79 Date: Wed, 3 Jan 2024 13:51:36 +0000 Subject: [PATCH 1/3] Addes FreeBSD rc script example --- examples/snac_freebsd | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 examples/snac_freebsd 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 From edd1e0abe4214215e91d14f4a8785dde4dd2de07 Mon Sep 17 00:00:00 2001 From: draga79 Date: Wed, 3 Jan 2024 13:54:23 +0000 Subject: [PATCH 2/3] Updated README.md for FreeBSD instructions --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 3a9ec43..04c811e 100644 --- a/README.md +++ b/README.md @@ -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. From 746db4047d7f235698775b227134bfe2405a98d2 Mon Sep 17 00:00:00 2001 From: draga79 Date: Wed, 3 Jan 2024 13:55:53 +0000 Subject: [PATCH 3/3] Update doc/snac.8 Added FreeBSD --- doc/snac.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/snac.8 b/doc/snac.8 index ffdbd44..05991e1 100644 --- a/doc/snac.8 +++ b/doc/snac.8 @@ -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.