Package: drbdlinks
Version: 1.18-2
Severity: important
When using restartcron(1) option with drbdlinks it fails to restart cron.
This happens because it finds /var/run/crond.pid and then asumes that init
script must be /etc/init.d/crond
def restartCron(config): #{{{1
if config.restartCron:
syslogScriptPath = None
for checkInitPath, checkRunPath in [
( '/etc/init.d/crond', '/var/run/crond.pid' ),
( '/etc/init.d/cron', '/var/run/cron.pid' ),
]:
if os.path.exists(checkRunPath):
initScriptPath = checkInitPath
if not initScriptPath:
syslog.syslog('Unable to locate cron init script, not '
'restarting cron.')
else:
retcode = os.system('%s restart' % initScriptPath)
if retcode != 0:
log('Cron restart returned %d, expected 0' % retcode)
return(retcode != 0)
return(0)
-- System Information:
Debian Release: 6.0.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages drbdlinks depends on:
ii python 2.6.6-3+squeeze6 interactive high-level object-orie
drbdlinks recommends no packages.
Versions of packages drbdlinks suggests:
ii drbd8-utils 2:8.3.7-2.1 RAID 1 over tcp/ip for Linux utili
-- Configuration Files:
/etc/drbdlinks.conf changed [not included]
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]