what is maxcmdlen? $0 len?

rflynn at acsalaska.net rflynn at acsalaska.net
Thu Jan 26 17:36:10 UTC 2012

> ps -auxww | grep swatch
> root       86920  0.0  0.7  7496  6960  ??  Is    9:33AM   0:00.01
> /usr/local/bin/perl /tmp//.swatch_script.86918
>   ./swatch status
>       329
> swatch is not running.

Ruling out the obvious, command_interpreter is set?
Also, it looks like swatch is creating a temporary script that is
actually run, so the status command is not supposed to find it.

It's a design issue upstream that you want them to find a better
solution for.

As a work around, you can write a wrapper script that catches
SIGTERM and kills off $TMPDIR/.swatch_script.`cat /var/run/swatch.pid`.
In your rc script you then specify this wrapper as the actual
daemon. All in all it ain't pretty.

-- Mel

More information about the freebsd-ports mailing list