From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVGWs-00006t-5e for guix-patches@gnu.org; Wed, 12 Jul 2017 08:14:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVGWo-0001cP-3B for guix-patches@gnu.org; Wed, 12 Jul 2017 08:14:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60382) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVGWn-0001cF-Vx for guix-patches@gnu.org; Wed, 12 Jul 2017 08:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dVGWn-00009z-RL for guix-patches@gnu.org; Wed, 12 Jul 2017 08:14:01 -0400 Subject: [bug#27650] [PATCH] gnu: services: admin: Add tailon. Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20170711065634.9717-1-mail@cbaines.net> Date: Wed, 12 Jul 2017 14:13:25 +0200 In-Reply-To: <20170711065634.9717-1-mail@cbaines.net> (Christopher Baines's message of "Tue, 11 Jul 2017 07:56:34 +0100") Message-ID: <87shi1etui.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Christopher Baines Cc: 27650@debbugs.gnu.org Hi Christopher, Christopher Baines skribis: > * gnu/services/admin.scm > (, ): New record types. > (tailon-configuration-files-string, tailon-shepherd-service): New > procedures. > (%tailon-accounts, tailon-service-type: New variables. > * doc/guix.text (Monitoring Services: Document the Tailon service. Neat. Maybe a service we could take advantage of on our build farm machines? s/text/texi/ :-) > +@node Monitoring Services > +@subsubsection Monitoring Services > + > +@subsubheading Tailon Service > + > +Tailon is a web application for viewing and searching log files. Please write @uref{https://=E2=80=A6, Tailon} so readers can read more abou= t it if needed. > +The following example will configure the service with default values. > +By default, Tailon can be accessed on port 8080 (http://localhost:8080). ^ @code > +The following example customises more of the Tailon configuration, > +adding ``sed'' to the list of allowed commands. ^^ @command{sed} > +@deftp {Data Type} tailon-configuration > +Data type representing the configuration of tailon. Tailon (capital). > +@table @asis > +@item @code{paths} (default: @code{(list "/var/log")}) > +List of paths to display. Can include strings for a single path, or a > +list, where the first item is the name of a subsection, and the > +remaining items are in that subsection. Please s/paths/directories/ (in GNU the convention is to use =E2=80=9Cfile = name=E2=80=9D or =E2=80=9Cdirectory name=E2=80=9D, whereas =E2=80=9Cpath=E2=80=9D is rese= rved for search paths.) > + (paths tailon-configuration-paths > + (default '("/var/log"))) > + (bind tailon-configuration-file-bind > + (default "localhost:8080")) > + (relative-root-path tailon-configuration-file-relative-root-path > + (default #f)) Same here. > +(define-gexp-compiler (tailon-configuration-file-compiler > + (file ) system target) That=E2=80=99s a good idea. :-) Otherwise LGTM! Bonus points if you write a system test that checks that at least the Web server shows up on port 8080. Thank you! Ludo=E2=80=99.