Two problems: 1. Cannot restart openfire using command: 3 3 * * 6 /usr/local/etc/rc.d/openfire stop && sleep 10 && /usr/local/etc/rc.d/openfire start because not all utilities contains in default PATH cron daemon 2. Not reading starup script otions openfire_javargs="" from /etc/rc.conf Fix: see patch Patch attached with submission follows: How-To-Repeat: restart openfire from cron using /usr/local/etc/rc.d/openfire stop && sleep 10 && /usr/local/etc/rc.d/openfire start ========== set another value "openfire_javargs" in rc.conf and restart openfire: openfire_javargs="-Xmx1536M"
State Changed From-To: open->feedback Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
I want to confirm the second problem the attached patch should fix it. However i can't confirm the first one. The deafult crontab do contain the required PATH at least for the last 7 years. See the: http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/crontab -- ====================================================================== - Best regards, Nikolay Pavlov. <<<----------------------------------- ======================================================================
may be you test before send ansver? string: 3 15 * * * env; /usr/local/etc/rc.d/openfire stop && sleep 10 && /usr/local/etc/rc.d/openfire start to root come mail contains: USER=root HOME=/root LOGNAME=root PATH=/usr/bin:/bin SHELL=/bin/sh Stopping openfire. Waiting for PIDS: 73544, 73544, 73544, 73544, 73544, 73544, 73544, 73544, 73544, 73544, 73544, 73544, 73544, 73544, 73544, 73544, 73544, 73544. chown: not found
On Monday 14 April 2008 14:06:22 Alex Keda wrote: > may be you test before send ansver? > > string: > 3 15 * * * env; > /usr/local/etc/rc.d/openfire stop && sleep 10 && > /usr/local/etc/rc.d/openfire start to root come mail contains: > USER=root > HOME=/root > LOGNAME=root > PATH=/usr/bin:/bin > SHELL=/bin/sh > Stopping openfire. > Waiting for PIDS: 73544, 73544, 73544, 73544, 73544, 73544, 73544, > 73544, 73544, 73544, 73544, 73544, 73544, 73544, 73544, 73544, 73544, > 73544. chown: not found Ok. We've discussed the issue with Alex at private email and the conclusion is that my patch for the second problem is reasonable. The first problem is not related to my rc script. It is related to how cron manage personal crontab files in /var/cron/tabs Edwin please commit my patch-2.diff -- ====================================================================== - Best regards, Nikolay Pavlov. <<<----------------------------------- ======================================================================
State Changed From-To: feedback->closed I've commited the second patch. Thanks.
Responsible Changed From-To: freebsd-ports-bugs->tmclaugh
tmclaugh 2008-04-18 01:58:48 UTC FreeBSD ports repository Modified files: net-im/openfire Makefile net-im/openfire/files openfire.in Log: Fix startup script so openfire_javargs are respected. PR: 122741 Approved by: maintainer Revision Changes Path 1.17 +1 -1 ports/net-im/openfire/Makefile 1.3 +2 -1 ports/net-im/openfire/files/openfire.in _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"