From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2476 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jonathan de Boyne Pollard Newsgroups: gmane.comp.sysutils.supervision.general Subject: svscan --help Date: Thu, 31 Jan 2019 21:53:13 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="102031"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 To: Supervision Original-X-From: supervision-return-2066-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Jan 31 22:55:22 2019 Return-path: Envelope-to: gcsg-supervision@m.gmane.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1gpKIn-000QKa-FF for gcsg-supervision@m.gmane.org; Thu, 31 Jan 2019 22:55:22 +0100 Original-Received: (qmail 19706 invoked by uid 89); 31 Jan 2019 21:55:41 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 19699 invoked from network); 31 Jan 2019 21:55:41 -0000 X-Originating-IP: [86.10.101.211] X-Authenticated-User: J.deBoynePollard-newsgroups@NTLWorld.COM X-Spam: 0 X-Authority: v=2.3 cv=XubUx2N9 c=1 sm=1 tr=0 a=FQ5CjUvp3JFI4KFGyeqcZw==:117 a=FQ5CjUvp3JFI4KFGyeqcZw==:17 a=IkcTkHD0fZMA:10 a=2rVjqWD_AAAA:8 a=b8h-K8rHMlrJVdj90I4A:9 a=_HyAAUL1BicTs9_8:21 a=yRwfxcGgm-719YVa:21 a=QEXdDO2ut3YA:10 a=7gJ1vdbeJxcA:10 a=-FEs8UIgK8oA:10 a=NWVoK91CQyQA:10 a=ULaUcM2Ibn9MdPUUwucP:22 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1548971593; bh=fXIAXketUhUGqefJ2eB1FKtsSDVu5Ox+zM8p5Nkw32w=; h=Subject:To:References:From:Date:In-Reply-To; b=JZ9lewo0jxc/PQzQ9P29fHryA1xQzwoUMbP4Fi+vS/UgzBViaZkY2Q3HEA2FxnxV3 v1i1LpIQFbhgoBbXZAVHEGUlvnyR94iXT8o2QwBMk1U+R7jH8KUIYwHTmJLkd+1emK 2GlkKCckkhO3CZ56bVKrGK7m+0STSesQGWlqTTwbTZG/81hTp5xYH6MeVFCuNV1vNX nmQ4FjIpAv43YjoJXDLY/+w4xnKidaZ3hdzBUMT5fffJ6cfhKNu/vUeeUkMOiY3M7H eM5q6IyedrsdL2A8LuKbsb2kkFne3m1VE+zfqyb072VoHh4u3Rm+1quZukd8YpRShp YI1pj7FWewpZQ== In-Reply-To: X-CMAE-Envelope: MS4wfOXq8FNJ7FKF8Lbppm1wSkDSFkFoY/cx6ioH2zY+4HUuHFuYrC5SdAzfWaWgc95Phw/WzHMabET/Tf1IBdugiOonLXwWMF5GBhJ6EqNnDzb3/SFQiHa+ 4UbcVrW+6gq/HuHqAGixf5XRwk0PnYEV5pXsf6W6rxbR6cjgwnpvToXQfB2UV7Q/ZyvYnUKTN4z/wvTK84OpbzaVYFoHUTOPHUg= Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2476 Archived-At: Laurent Bercot: > s6-svscan is pretty mild in that aspect. In fairness, the original Bernstein program was somewhat more forgiving: > /package/admin/djbwares % command/svscan --help > svscan: fatal: unable to chdir to --help: file does not exist > /package/admin/djbwares % People used this program wrongly so often with the Bernstein tools that I gained a Frequently Given Answer about it in 2002. * http://jdebp.eu./FGA/daemontools-spurious-supervise-directories.html I take the view that if the user gives a command that takes a specific number of arguments the wrong number of arguments, that's an error. A quick if (1 != args.size()) test saves this support pain, and having to explain this *yet again*. > /package/admin/nosh % command/svscan 1 2 > svscan: FATAL: One directory name is required. > /package/admin/nosh % command/svscan > svscan: FATAL: One directory name is required. > /package/admin/nosh % command/svscan /dev/null > svscan: FATAL: /dev/null: Not a directory > /package/admin/nosh % I defined the directory argument as mandatory in service-dt-scanner, a.k.a. svscan, though. > /package/admin/nosh % command/svscan --help > Usage: svscan [-?] [--help] [--usage] [--input-activation] {directory} > > Main options: > --input-activation Use input activation for log services. > /package/admin/nosh % It's not exactly the same program, after all. * http://jdebp.eu./Softwares/nosh/guide/commands/service-dt-scanner.xml * http://jdebp.eu./Softwares/djbwares/guide/commands/svscan.xml Users should indeed read the doco. It is written to be read. (-: