resolvconf needs @RESTARTCMD@ to be replaced after r303062
    Guy Yur 
    guyyur at gmail.com
       
    Sat Jul 30 22:37:38 UTC 2016
    
    
  
Hi,
openresolv 3.8.1 added RESTARTCMD=@RESTARTCMD@ in
contrib/openresolv/resolvconf.in.
It is not replaced by the sed expressions in sbin/resolvconf/Makefile.
Error seen is "eval: @RESTARTCMD@: not found".
Current @RESTARTCMD \(.*\)@ sed expression needs to be kept for
pdns_recursor.in and a new expression added to replace @RESTARTCMD at .
The following worked for me:
RESTARTCMD_=    "/usr/sbin/service \\$$1 onestatus >/dev/null 2>\&1
\&\& /usr/sbin/service \\$$1 restart"
sed ... \
  ... \
  -e 's:@RESTARTCMD@:${RESTARTCMD_}:g' \
  ...
Regards,
Guy
    
    
More information about the freebsd-current
mailing list