Closed Bug 735653 Opened 14 years ago Closed 14 years ago

bug in update script on pm-ns01/02 prevents named from being restarted

Categories

(mozilla.org Graveyard :: Server Operations, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Atoll, Assigned: bhourigan)

Details

update-slave-named on pm-ns01/02 contains the phrase "named $action", but does not define $action, nor is action set in /etc/cron.d/named-update-slave. One possible fix: --- update-slave-named 2012-03-14 06:43:56.000000000 -0700 +++ update-slave-named.fixed 2012-03-14 06:44:26.000000000 -0700 @@ -2,6 +2,10 @@ dnsroot=/var/named/chroot/var/named/slave-config LOCKFILE='/tmp/update-named.lock' +if [ -z "$action" ]; then + action="restart" +fi + if ( set -o noclobber; echo "$$" > "$LOCKFILE") 2> /dev/null; then trap 'rm -f "$LOCKFILE"; exit $?' INT TERM EXIT
Assignee: server-ops → bhourigan
:atoll Thanks for the patch. This has been applied to /root/bin/update-slave-named on pm-ns01/pm-ns02, and the file in puppet.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.