From owner-freebsd-current@freebsd.org Sat Jul 30 22:37:38 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 171A9BA89B7 for ; Sat, 30 Jul 2016 22:37:38 +0000 (UTC) (envelope-from guyyur@gmail.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 994141962; Sat, 30 Jul 2016 22:37:37 +0000 (UTC) (envelope-from guyyur@gmail.com) Received: by mail-wm0-x22d.google.com with SMTP id i5so195902698wmg.0; Sat, 30 Jul 2016 15:37:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=tylHI6O1fT7JI7id9DpwrC3Fl0jj2znNvWjFpIvflBs=; b=W5WqZ1T3rRcnFoJQQz4eRif6SAKE0W3L8fHcmuFzLqyn89itmK+v/wQDt7fUQIMsOH DvILVS9JU1LZxz4Y9Di7199EGLexbr3IDxdsfonr+mmsuRLJ9LHhUVbJxKgo0ZQm0nwL GaXpFpdLY9QLw8NfsPn0tc7bGI3LbIywDa1/NdONS9MMgMxfkaX1mC9FTj78JCciYT7z BKVFLUoCbSWu1OvuIO461lUPtUIgjeEFRF+ZINRS/y3hIogYvbmalq/b5ofVtEWe1+5G wEHqcE4pwbSb0+RbYDDXVGpnVCa82fIQyBGy8lRgDRS7D52PKN0fX5BwTEZHNikMfSZo 7mbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=tylHI6O1fT7JI7id9DpwrC3Fl0jj2znNvWjFpIvflBs=; b=BRLxvqtboAi3cK9pNQhcI88mXvNNEsBtZwU9ij6VL81Z54m+WeGKST3xQWNejuEVc4 2pbVmmd9J6JMAUeMfuXy8j+sCIzJlD4T4YAtGTrTzAB1n4CMlMpaov2fz1NVdpNYdcmC kLCOCqp289U60rFB9kheVO9Y6mfF1IWNv6eWn7Ccu2j4KpLjI2nfwlmvXgu5dzQgB+Jn EbgLr4wiMBv6Cdre9ddpkxLCCir2OcUQf+EtqobBl8ocM5P5Q9UGij6EwvGXUZOwB+Fk R5FXCvQhAPSUTW22OwfpZhUlKD3rJCGuZJxnmaVp/+j9P5iT6aoUapM7FzDELR/s0gNW TDOg== X-Gm-Message-State: AEkoousXB5AjvTX8ngR2a0XMKcHJL0QKxrSPiz4UHBjXnnedEqsjHdwNtjkyvTSU2a2v0c01dz2vIeoWgnFxCw== X-Received: by 10.194.87.66 with SMTP id v2mr49197404wjz.40.1469918255576; Sat, 30 Jul 2016 15:37:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.19.203 with HTTP; Sat, 30 Jul 2016 15:37:34 -0700 (PDT) From: Guy Yur Date: Sun, 31 Jul 2016 01:37:34 +0300 Message-ID: Subject: resolvconf needs @RESTARTCMD@ to be replaced after r303062 To: freebsd-current , pfg@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jul 2016 22:37:38 -0000 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@. 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