X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/662cdab2bc7f521b699f9f578827d07a6379662a..30de46f6a50ccf55753709d7a3e90921fd548159:/gen/cups-cluster.sh diff --git a/gen/cups-cluster.sh b/gen/cups-cluster.sh index 0dae72bb..a2aa1ebb 100755 --- a/gen/cups-cluster.sh +++ b/gen/cups-cluster.sh @@ -17,6 +17,8 @@ PATH=/bin TARFILE=/var/tmp/cups-cluster.out CUPSLOCAL=/etc/cups +/etc/init.d/cups stop + # Alert if the tar file or other needed files do not exist test -r $TARFILE || exit $MR_MISSINGFILE test -d $CUPSLOCAL || exit $MR_MISSINGFILE @@ -26,12 +28,10 @@ test -d $CUPSLOCAL || exit $MR_MISSINGFILE cd / tar xf $TARFILE || exit $MR_TARERR -/etc/cups/bin/sync_lpd_ldap.pl 2>/dev/null -/etc/cups/bin/gen-ppd.pl 2>/dev/null - -/etc/init.d/cups stop /etc/init.d/cups start +/etc/cups/bin/gen-ppd.pl 2>/dev/null + # if Samba-enabled, then restart it too to have it pick up # new definitions if [ -x /etc/init.d/smb ]; then