Date: Thu, 14 Dec 2006 10:41:48 +0000 From: Ashley Moran <work@ashleymoran.me.uk> To: freebsd-questions@freebsd.org Subject: rc.d script for processes started with /usr/bin/env Message-ID: <9EF4201C-AF13-4659-AD7A-28C077DBAA5B@ashleymoran.me.uk>
next in thread | raw e-mail | index | archive | help
Hi I just wrote a little ruby web server for internal use. I wrote it on my mac to deploy on FreeBSD, so I used "#!/usr/bin/env ruby" as the shebang. But when I do that, I can't stop the server with my rc.d script (below). If I change them both to /usr/local/bin/ruby I can make it work. Is it possible to use /usr/bin/env like this? Thanks Ashley #!/bin/sh . /etc/rc.subr name="prolite_password_server" rcvar=`set_rcvar` load_rc_config $name prolite_password_server_enable=${prolite_password_server_enable:="NO"} command="/usr/local/bin/${name}" command_interpreter="/usr/local/bin/ruby" prolite_password_server_user=${prolite_password_server_user:-"www"} prolite_password_server_group=${prolite_password_server_group:-"www"} pidfile="/var/run/${name}/${name}.pid" run_rc_command "$1"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9EF4201C-AF13-4659-AD7A-28C077DBAA5B>