Bug#341714: [Pkg-zope-developers] Bug#341714: zope-common: Zope does not restart with cron

Fabio Tranchitella kobold at debian.org
Wed Dec 7 15:39:42 UTC 2005


Il giorno ven, 02/12/2005 alle 15.36 +0100, Frederic MASSOT ha scritto:
> Package: zope-common
> Version: 0.5.15
> Severity: normal
> 
> 
> Hi,
> 
> When I restart Zope in crontab with the command :
> 
> 0  4  *  *  *  /etc/init.d/zope2.7 restart
> 
> I have this result :
> 
> Zope2.7: restarting juliana_1 instance failed!
> Zope2.7: restarting juliana_2 instance failed!

The problem is that your PATH environment variable doesn't 
contain "/usr/sbin", where dzhandle is installed. To solve 
your problem, please add the following row before your crontab rule:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

I know that I could change /etc/init.d/zope* to use "/usr/sbin/dzhandle"
instead of "dzhandle", but there is no reason to do so (other than this
bug report) and I really prefer to leave it as it is now. All in all,
this problem is related to an environment variable that is right when
you run commands with root.

If you agree, I'll close this bug report.

-- 
Fabio Tranchitella <kobold at debian.org>                        .''`.
Proud Debian GNU/Linux developer, admin and user.            : :'  :
                                                             `. `'`
   http://people.debian.org/~kobold/                           `-
_____________________________________________________________________
1024D/7F961564, fpr 5465 6E69 E559 6466 BF3D 9F01 2BF8 EE2B 7F96 1564
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/pkg-zope-developers/attachments/20051207/bdb4bea6/attachment.pgp


More information about the Pkg-zope-developers mailing list