On Mon, Aug 11, 2014 at 06:52:33PM +0000, Gerrit Pape wrote:
> In your case the log service is still running, and so runsv is still
> waiting for it.  The best solution is to make your log service detect
> that stdin is closed and exit as there's no more data to log.

Hm. The log service of cereal makes heavy use of shell redirection:

#!/bin/sh -e

# The cereal scripts were written by
# Jameson Graef Rollins <jroll...@finestructure.net>
# and
# Daniel Kahn Gillmor <d...@fifthhorseman.net>.
#
# They are Copyright 2007, and are all released under the GPL, version 3
# or later.

exec 2>&1

SHAREDIR="/usr/share/cereal"
export SHAREDIR
. "$SHAREDIR/common"

LOGUSER="$(cat ../env/LOGUSER)"
LOGGROUP="$(cat ../env/LOGGROUP)"

check_user "$LOGUSER"
check_group "$LOGGROUP"

exec chpst -u "$LOGUSER:$LOGGROUP" svlogd -tt ./main <../socket

I guess that this was written with the "old" documented behavior in
mind. Reassigning this bug to cereal.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600420


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to