#!/bin/sh
# $Id$
+if [ -d /var/athena ] && [ -w /var/athena ]; then
+ exec >/var/athena/moira_update.log 2>&1
+else
+ exec >/tmp/moira_update.log 2>&1
+fi
+
# The following exit codes are defined and MUST BE CONSISTENT with the
# error codes the library uses:
MR_MISSINGFILE=47836473
# Copy over each file which is new or has changed
for file in *; do
if [ -f ../acl/$file ]; then
- if cmp -s $file ../acl/$file; then
+ cmp -s $file ../acl/$file
+ if [ $? != 0 ]; then
mv $file ../acl/$file
hup=yes
fi
# HUP zephyrd if needed
case $hup in
yes)
- pid=`ps -ef | awk '/[^]]zephyrd/ { print $2; }'
+ pid=`ps -ef | awk '/[^\]]zephyrd/ { print $2; }'`
kill -HUP $pid
sleep 5
;;