From 940d0a5b126999329c83b26efc8fdfe02271e34e Mon Sep 17 00:00:00 2001 From: gahr <> Date: Mon, 6 Oct 2014 13:55:10 +0000 Subject: [PATCH] Allow to specify the path to the tcl.scgi script FossilOrigin-Name: efbf88244d015a2e3d8858ce53f935a2a6d6c6babe0505dc107142dc08cc79a7 --- rc.d/tcl-scgi | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/rc.d/tcl-scgi b/rc.d/tcl-scgi index b1bf820..79ef3a6 100755 --- a/rc.d/tcl-scgi +++ b/rc.d/tcl-scgi @@ -14,6 +14,9 @@ # To run the server under a different user, define the following: # tcl_scgi_user="www" # +# The location of the scgi.tcl location might be specified as well: +# tcl_scgi_path="/usr/local/www/scgi.tcl" +# . /etc/rc.subr @@ -22,12 +25,14 @@ rcvar=tcl_scgi_enable load_rc_config "$name" -command="/usr/local/www/scgi.tcl" +tcl_scgi_user=${tcl_scgi_user:-root} +tcl_scgi_path=${tcl_scgi_path:-/usr/local/www/scgi.tcl} + +command="$tcl_scgi_path" command_interpreter="/usr/local/bin/tclsh8.6" pidfile="/var/run/tcl-scgi.pid" start_cmd="tcl_scgi_start" stop_cmd="tcl_scgi_stop" -tcl_scgi_user=${tcl_scgi_user:-root} tcl_scgi_start() {