public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: James Hunt <james.hunt@canonical.com>
To: Upstart Devel List <upstart-devel@lists.ubuntu.com>,
	linux-kernel@vger.kernel.org
Subject: Re: Upstart 1.4 "Let them speak" released
Date: Tue, 13 Dec 2011 11:48:24 +0000	[thread overview]
Message-ID: <4EE73B88.3040101@canonical.com> (raw)
In-Reply-To: <20111213113846.GE26355@tango.0pointer.de>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Lennart,

On 13/12/11 11:38, Lennart Poettering wrote:
> On Tue, 13.12.11 11:36, James Hunt (james.hunt@canonical.com) wrote: Just out of curiosity: how
> is rotation handled for this? If you pass the file fd directly to the spawned service you can't
> really rotate the file ever, since you cannot ask the service to reopen the file. So what do 
> you do?
The trick is we don't pass the logfile fd to the job (the jobs stdout+stderr are connected to one
end of a pty). Regarding rotation, Upstart detects if the logfile that it manages was deleted. If
so, it simply closes and reopens the corresponding file. This allows tools like logrotate to
handle rotation.

Kind regards,

James.
- --
James Hunt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJO5zuHAAoJEJ1Q4UTmNXMnZe8P/2dgwOcThbDmCl4sunR7SDmM
4TQ+lEW1bQs/GthaZ9q8J+xFszzlEuzwjbnNHKyNIlivhn3pHcJ1OldpcvzxFAIf
2zEVrJ5mlixUaHA8OTm2UB0wz3Uk5yecW73LKWOXOgk4qi8L7icQAkh+4hsmIuj+
Atdk29krHvmXiD37HGbtU/IcMuNmnmtpBy8V4NPbDYCWTK0DZGFcx9qT3PGDmAq6
kzh8XdC35OeLA41X4cUYAKpiE6QEGdusAqw1vjI/Sne36JJZoMzTTmMz3zwAaEQW
ennSaa8jgVhUaMfhagTVE6MFnDha+hA5wHvZ+KT7G/brqTAUCW7eHpyZM+lf0Had
fEO0Bmaukrz+usEr3m5zNTMHPctN0Uy4xPOs3uhGPEjdg+tCnCPjiwEhHb++75LZ
OBPp9axf8FUZDQpT4w6cu+1m36L9WTcLaBJx9MRTNZP+pD3TjquEhA/ppqObNRn3
K/05+wVJwRVL3ZG2I3/A9lP5/kjWfdZ48T2W4yYN0HyqETvlz5gw7SXioRUoETAf
uXXkVYLkbVjSLdmpb/qYS6N8bCgqVIL/amW0gt233xpfYmsbBtJvjLU2cpfbOtZ2
0E6Mjq94il6DqP6H+HZQWYM43yd/KUr2vAlUUdDDtNOmkFaJ5fFEOKT8Ng8rpjWF
oOzHL2pM/I/IFT9Dvmlp
=NB4b
-----END PGP SIGNATURE-----

      reply	other threads:[~2011-12-13 11:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-13 11:36 Upstart 1.4 "Let them speak" released James Hunt
2011-12-13 11:38 ` Lennart Poettering
2011-12-13 11:48   ` James Hunt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EE73B88.3040101@canonical.com \
    --to=james.hunt@canonical.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=upstart-devel@lists.ubuntu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox