Prefix OpenBSD config values and add TMPDIR

This commit is contained in:
Sam Greytalon 2023-06-20 16:37:04 -07:00
parent c4ed56137d
commit a7e848d4a1
2 changed files with 10 additions and 3 deletions

View File

@ -1,2 +1,3 @@
socket_path="/var/www/run/dexter.sock"
script_path="/var/www/cgi-bin/dexter/dexter.pl"
dexter_socket_path="/var/www/run/dexter.sock"
dexter_script_path="/var/www/cgi-bin/dexter/dexter.pl"
dexter_tmpdir="/tmp/dexter"

View File

@ -2,11 +2,17 @@
daemon="plackup"
daemon_user="www"
dexter_script_path="/var/www/cgi-bin/dexter/dexter.pl"
dexter_socket_path="/var/www/run/dexter.sock"
dexter_psgi_mode="production"
dexter_tmpdir="/tmp/dexter"
TMPDIR="$dexter_tmpdir"; export TMPDIR
. /etc/rc.d/rc.subr
rc_start() {
. /etc/dexter.conf
rc_exec "${daemon} ${script_path} -s FCGI -l ${socket_path} -E production -D"
rc_exec "${daemon} ${script_path} -s FCGI -l ${socket_path} -E ${dexter_psgi_mode} -D"
}
rc_stop() {