New port startup script fails
Paul Schmehl
pauls at utdallas.edu
Sat Jul 23 15:13:36 GMT 2005
--On July 23, 2005 3:26:35 PM +0300 Mike Makonnen <mtm at identd.net> wrote:
> On Thu, Jul 21, 2005 at 06:10:45PM -0500, Paul Schmehl wrote:
>>
>> I'm not sure I understand what you mean here. However, there *is* one
>> oddity. When the program is running, ps shows the command to be
>> "tclsh8.4 /usr/local/bin/sguil-server/sguild -D -c
>> /usr/local/etc/sguil-server/sguild.conf".
>>
>> Maybe that's the problem? (I thought, since the pidfile was known that
>> it wouldn't matter.)
>>
>
> If the command you're starting up is a shell script then you need to set
> command_interpreter=yes in your script. In such a case rc.subr(8) will
> read the first line of $command and figure out what the interpreter is
> and modify the ps(1) string to look for appropriately. And yes, you need
> to define $pidfile as well.
>
I tried using command_interpreter=yes, but I got errors:
can't find tclsh8.4
and when I tried adding the full patch, I got errors about ELF??
Paul Schmehl (pauls at utdallas.edu)
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/
More information about the freebsd-rc
mailing list