NSD 2.3.2 error at nsdc.sh.in
Ondrej Sury
ondrej at sury.org
Mon Dec 5 11:23:44 UTC 2005
sebastian wrote:
> The file nsdc.sh.in have a wrong line.
>
> Old:
>
> lock() {
> (umask 222; echo "database locked bij PID: $$") >${lockfile}) ||
> (cat ${lockfile} ; "echo aborting..." ; exit 1)
> }
>
> Error Message:
>
> /usr/local/nsd/sbin/nsdc: line 56: syntax error near unexpected token `)'
> /usr/local/nsd/sbin/nsdc: line 56: ` (umask 222; echo "database
> locked bij PID: $$") >${lockfile}) ||'
>
> New:
>
> lock() {
> ((umask 222; echo "database locked bij PID: $$") >${lockfile}) ||
> (cat ${lockfile} ; "echo aborting..." ; exit 1)
> }
Even better (s/bij/by/):
lock() {
((umask 222; echo "database locked by PID: $$") >${lockfile}) ||
(cat ${lockfile} ; "echo aborting..." ; exit 1)
}
More information about the nsd-users
mailing list