Starting ZM inside a FreeBSD jail fails - workaround provide

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
hjf
Posts: 5
Joined: Tue Sep 11, 2012 1:06 pm

Starting ZM inside a FreeBSD jail fails - workaround provide

Post by hjf »

There's a problem with the zmpkg.pl script under FreeBSD. When auto-started inside a Jail, FreeBSD doesn't use the "start" argument, but it uses "quietstart" (and quietstop, etc). So ZM doesn't automatically start (the web interface loads but it shows as "Stopped").

As a workaround, I added the following at line 54 in zmpkg.pl:

Code: Select all

if ($command =~ /^quiet(.*)/) {$command=$1;}
right before

Code: Select all

if ( !$command || $command !~ /^(?:start|stop|restart|status|logrot|faststart|faststop)$/ )
Cheers,
Hernán
Post Reply