Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: adding configtest to service httpd options
- X-seq: zsh-users 21473
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: adding configtest to service httpd options
- Date: Thu, 21 Apr 2016 18:04:53 -0700
- 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==
- In-reply-to: <XnsA5F1B69EA1363davidrayninfocouk@80.91.229.13>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <XnsA5F1B69EA1363davidrayninfocouk@80.91.229.13>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author