Skip to content

Commit

Permalink
Allow to specify the path to the tcl.scgi script
Browse files Browse the repository at this point in the history
FossilOrigin-Name: efbf88244d015a2e3d8858ce53f935a2a6d6c6babe0505dc107142dc08cc79a7
  • Loading branch information
gahr committed Oct 6, 2014
1 parent 44e0244 commit 940d0a5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions rc.d/tcl-scgi
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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()
{
Expand Down

0 comments on commit 940d0a5

Please sign in to comment.