Bug#341714: [Pkg-zope-developers] Bug#341714: zope-common: Zope does not restart with cron
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 <[EMAIL PROTECTED]>.''`. 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 signature.asc Description: This is a digitally signed message part
Bug#341714: zope-common: Zope does not restart with cron
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! And Zope don't restart. When I restart Zope in the bash shell, I have this result : nodens:/# /etc/init.d/zope2.7 restart Zope2.7: restarting juliana_1 instance. Zope2.7: restarting juliana_2 instance. And Zope restart correctly. I do not understand why Zope does not restart in the crontab. Regards. -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.13 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages zope-common depends on: ii adduser 3.63 Add and remove users and groups ii debconf [debconf-2.0] 1.4.30.13 Debian configuration management sy ii python2.4 2.4.2-1An interactive high-level object-o -- debconf information: zope-common/instance-http-port: zope-common/remove-instance-without-data: abort zope-common/admin-user: admin zope-common/admin-automatic-password: zope-common/keep-data-on-purge: true * shared/zope/restart: end -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]