diff --git a/.github/workflows/sakisafe_http.yml b/.github/workflows/sakisafe_http.yml index af041ef..aec4d66 100644 --- a/.github/workflows/sakisafe_http.yml +++ b/.github/workflows/sakisafe_http.yml @@ -32,3 +32,6 @@ jobs: # LOLOLOLOLOLOLOLO curl -X POST -F "file=@/etc/passwd" http://localhost:8080 + - name: Read log entry + run: | + cat http/sakisafe.log diff --git a/http/init/sakisafe_bsd b/http/init/sakisafe_bsd new file mode 100644 index 0000000..cf05d48 --- /dev/null +++ b/http/init/sakisafe_bsd @@ -0,0 +1,24 @@ +# +# Add the following lines to /etc/rc.conf to enable sakisafe: +# +#sakisafe_enable="YES" + +. /etc/rc.subr + +name="sakisafe" +rcvar="sakisafe_enable" + +load_rc_config $name + +: ${sakisafe_user:=saki} +: ${sakisafe_group:=saki} +: ${sakisafe_enable:=NO} +: ${sakisafe_flags:= -P /var/run/sakisafe.pid -f /usr/local/bin/morbo -l http://*:3000 /usr/local/share/sakisafe/sakisafe.pl } +: ${sakisafe_chdir:= /usr/local/share/sakisafe } +command="/usr/sbin/daemon" +command_args="${sakisafe_flags}" +pidfile="/var/run/${name}.pid" + +PATH="${PATH}" + +run_rc_command "$1"