From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 8F1DC138E20 for ; Thu, 20 Feb 2014 15:24:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5DD28E0B83; Thu, 20 Feb 2014 15:24:35 +0000 (UTC) Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 28F00E0A94 for ; Thu, 20 Feb 2014 15:24:34 +0000 (UTC) Received: by mail-we0-f169.google.com with SMTP id t61so1611703wes.0 for ; Thu, 20 Feb 2014 07:24:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=l4MqqQ7nuz5loenmjzmtafuxwt1C/piLt1IL0Ci7zNg=; b=YC/wlSI4L68cqjbwU0GGGjomwyHL4WZFc/v3FQ2dA/PKLBhUIHIKRH+ScHhpp7jgVY Ez04J09BB7HsUL3Fgy+tqLKzNWNRdHBNC8IIjr8mr/AExnLf4hZCP+lP8FaIGYlODWOR Xy1PNvoEtKEN99fZl1L7RKgVghDsljnT515pIaol2U+dsRPlEXUqe1EDIxdwDDJsDAoD doKtlWNmps1vu97tyx+V4M4HyeAFHsyCwIACaBt0L7rQZ9YWsuMi0TvY8g26Ain1zvDp zGJmh373TeoupnKyA5g34th9ypZl/Hznv2fKOJnd59WmaTiA266p+ac9AVTgfxC+rHMB lTng== X-Received: by 10.180.96.228 with SMTP id dv4mr3152596wib.24.1392909872962; Thu, 20 Feb 2014 07:24:32 -0800 (PST) Received: from [172.20.0.40] (196-210-102-21.dynamic.isadsl.co.za. [196.210.102.21]) by mx.google.com with ESMTPSA id fh1sm12187888wib.11.2014.02.20.07.24.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 07:24:32 -0800 (PST) Message-ID: <53061E1F.2050400@gmail.com> Date: Thu, 20 Feb 2014 17:24:15 +0200 From: Alan McKinnon User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Debian just voted in systemd for default init system in jessie References: <53010A8E.2050909@googlemail.com> <53012691.6040503@googlemail.com> <5ea6afc66880871ddec1398bab1e1f17.squirrel@www.antarean.org> <31f183759cbab018caa5523ab4974175.squirrel@www.antarean.org> <5305C7E3.9030906@yandex.ru> <20140220113305.GB6784@sabayon.logifi> <5305ECB0.7060706@yandex.ru> In-Reply-To: <5305ECB0.7060706@yandex.ru> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: fa571765-b000-4f05-9a9c-e91cb98263d0 X-Archives-Hash: 5d5572a920b9d25e303d633fe6e535eb On 20/02/2014 13:53, Yuri K. Shatroff wrote: > I don't need such 'solutions' to non-existent problems. But if there > were a *real* necessity to pretty-print a log's tail in service status, > I think it would have been a matter of a proper setup (i.e. the service > using syslog, hence a defined log format) and not a heck more complicated. > >> Definetly not a 5-minutes job. > > 5 minutes is even too much to type sort of > tail -${LINES} ${SERVICE}.log > if you know where to look up LINES and SERVICE. You've never actually tried this, right? Your idea instantly fails as the rc-service author has no idea of what you defined ${SERVICE} to be and no way to determine what it is now. How are you going to deal with the situation with a big busy daemon that immediately starts serving requests when started (i.e. with very little delay)? By the time grep, sed, awk and friends have gotten around to making their way through a log file of varying size, the entries that apply to restart can easy be many hundreds of log lines prior. I have done this, and it does not work. I got a result and it's relaible, but you don't want to know what it took. It's also highly customized and useless to anything other than my highly customized setup. -- Alan McKinnon alan.mckinnon@gmail.com