Hi, Rhonda...

On Donnerstag, 5. März 2009, Gerfried Fuchs wrote:
>  The /etc/init.d/pnds script does the following:
>
> #v+
> cd $SOCKETPATH
>
> [...]
>
>         force-reload | restart)
>                 echo -n "Restarting PowerDNS authoritative nameserver: "
>                 echo -n stopping and waiting..
>                 doPC quit
>                 sleep 3
>                 echo done
>                 $0 start
>         ;;
>         reload)
>                 echo -n "Reloading PowerDNS authoritative nameserver: "
>                 if test "$NOTRUNNING" = "0"; then
>                         doPC cycle
>                         echo requested reload
>                 else
>                         echo not running yet
>                         $0 start
>                 fi
>         ;;
> #v-
>
>  This obviously fails when one doesn't call the script with an absolute
> path.

Perhaps I'm just stupid but it's not obvious to me. Could you elaborate on 
this? Do you mean you do "export PATH=.:$PATH" while being root and 
then "cd /etc/init.d ; pdns start"? Why is $0 not safe? Thanks in advance.

 Christoph

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to