Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 187100 - vixie-cron-4.1-r10 restart fails
Summary: vixie-cron-4.1-r10 restart fails
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-30 09:17 UTC by Manuel Schmitt
Modified: 2008-11-12 01:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
one line patch to vixie-cron.rc6 - check pidfile on startup (vixie-cron.rc6.diff,385 bytes, patch)
2008-11-12 01:07 UTC, Bruce Benda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Schmitt 2007-07-30 09:17:56 UTC
When restarting the Vixie cron while a cron job is running, the parent process gets stopped but not started again.

Reproducible: Always

Steps to Reproduce:
1. Have a cronjob running (e.g. a Backup)
2. $ /etc/init.d/vixie-cron restart
3. See the processlist (or $ /etc/init.d/vixie-cron status)

Actual Results:  
The "parent" cron process gets not started again.

Expected Results:  
The "parent" cron process should be started again.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-07-30 09:40:48 UTC
Which vixie-cron version is this about? And could you clarify what you mean by the 'parent process'? The initscript fails, or? Can you post some errors?
Comment 2 Manuel Schmitt 2007-07-30 11:33:00 UTC
I have installied

    vixie-cron-4.1-r10
Comment 3 Manuel Schmitt 2007-07-30 11:36:36 UTC
And: With "parent process" I mean the cron daemon itself.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-07-30 12:18:27 UTC
Anything in the log? Also post emerge --info.
Comment 5 Manuel Schmitt 2007-07-30 13:43:27 UTC
No entries in the message / syslog.

$ emerge --info

Portage 2.1.2.9 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.22 i686)
=================================================================
System uname: 2.6.22 i686 Intel(R) Celeron(R) CPU 2.20GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 28 Jul 2007 21:50:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61
sys-devel/automake:  1.6.3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.manitu.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://mirror.manitu.net/gentoo-portage"
USE="acl berkdb bitmap-fonts cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog libg++ mailwrapper midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 6 Manuel Schmitt 2007-08-01 11:09:15 UTC
Is this resolved in new version / release of cron?
Comment 7 Bruce Benda 2008-11-12 01:07:26 UTC
Created attachment 171492 [details, diff]
one line patch to vixie-cron.rc6 - check pidfile on startup

Tell start-stop-daemon to only check the pidfile, otherwise it will fail to start when it sees the child "/usr/sbin/cron" processes running.

--- vixie-cron.rc6.orig 2008-11-11 16:56:43.701354708 -0800
+++ vixie-cron.rc6      2008-11-11 16:57:28.791076756 -0800
@@ -11,7 +11,7 @@ depend() {

 start() {
        ebegin "Starting vixie-cron"
-       start-stop-daemon --start --quiet --exec /usr/sbin/cron
+       start-stop-daemon --start --quiet --pidfile /var/run/cron.pid --exec /usr/sbin/cron
        eend $?
 }