From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22067 invoked by alias); 22 Apr 2016 01:04:44 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21473 Received: (qmail 24214 invoked from network); 22 Apr 2016 01:04:42 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=7hsWNsuYNdjS16VvM5S00iybEY4zveiERXFqrqfdySA=; b=AEGV0naVzM5RTjBEyLeq1rXjinB18yci4ScOcWN/iyjbW6z3A3gZbxfvtSPdSos2zm vdu/nxFC9AJodpObOnq6gQXH28XkMAx2Ee/ocop2W9gJ64i5rPnu1VwsOdEojOv9Omyq Q7KrrM/fTPdw9QyWCo4QKFsGmY9omXRX3l6OWG1h/spsBIWCq3hGeMI2DKLl305IqnrN 84kt7pH+UtfFK/Bifmejh4xNTUo+puohZOLFgmEjCG5uQPT0FU+NHlvgwCmDqnbatxCg kcXYDFnbTWihZz0WscoYJRyfRkew8d6JRVDh9qTLDW3ZHIMlXzMATd+wMRtnLNF+juVg d0/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=7hsWNsuYNdjS16VvM5S00iybEY4zveiERXFqrqfdySA=; b=iRu9nbdGCRqfRBRwxfsnX22eZISaVJRAkMz5OE3CDVQa0aBrzCi9fMf9M31SCXLFgJ oBXKpksfJbbguUp2gyY4xqqwn3YmQprJGR1Obvzy9kDY4y7VxnQO53umkax5fMoV1rNZ aRKg+FoLbnMYBspSnxb/EdwIJ+Fq4jbAjAo5ix95gLKUL8zxDBNpn3hOzFGaVyWGmLTQ dXrfzpOK6kV1JpK4nRjBeUAK/Wq9zBk/R0CU3S2Cj/7ietEvhoPL4GqovV9+gyXgsHuH DQNVoLYgR9m0SCbpAw96vU7D0auUgSSyXzc97yWty9mUn9091MsJLPzCxXbNztZ2aW7N 1AiQ== X-Gm-Message-State: AOPr4FWf5JTx+qvMvlMWOokFEme3JzIzXTD6T28M1WI8fUWjUY1IHBp/D5z29zFGMPXHMA== X-Received: by 10.66.183.173 with SMTP id en13mr24984335pac.8.1461287077606; Thu, 21 Apr 2016 18:04:37 -0700 (PDT) From: Bart Schaefer Message-Id: <160421180453.ZM18158@torch.brasslantern.com> Date: Thu, 21 Apr 2016 18:04:53 -0700 In-Reply-To: Comments: In reply to zzapper "adding configtest to service httpd options" (Apr 21, 4:57pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: adding configtest to service httpd options MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 21, 4:57pm, zzapper wrote: } } Thought I'd just have to add configtest to a list in a function definition } file _init_d _service etc but no luck There are three different versions of the helper function _init_d_get_cmds in _init_d, so you need to find the correct one for your operating system and update the pattern that is used for extracting valid action strings from the individual script files. Two of the possibilities are for BSD variants so for CentOS the third one is what you want. "configtest" appears to be valid only for httpd and smb, and "graceful" only for httpd, so it's not entirely surprising that a pattern intended to pick out the common actions from a large set of script files does not include those special cases. You need to change the assignment what='(...)' to add configtest to the alternatives. There is a more general pattern [that doesn't require a specific set of words to check] in a comment in _init_d, but as noted there, it may match things that are not actually valid actions.