* Upstart 1.4 "Let them speak" released
@ 2011-12-13 11:36 James Hunt
2011-12-13 11:38 ` Lennart Poettering
0 siblings, 1 reply; 3+ messages in thread
From: James Hunt @ 2011-12-13 11:36 UTC (permalink / raw)
To: Upstart Devel List, linux-kernel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Summary of changes:
* Improved console setting.
* New "log" argument to console stanza allowing a system jobs
stdout/stderr to be captured to a file. New options added to
support this feature: '--default-console', '--logdir',
'--no-log'. This feature only currently applies to system jobs:
user jobs which specify "console log" will be treated as if they
had specified "console none".
* New "setuid" and "setgid" stanzas to allow system jobs to be run
under the specified uid/gid corresponding to the given name/group.
* Improvements to upstart-udev-bridge to handle problematic hardware
(such as some batteries) which pass non-printable bytes to userspace.
Download it from launchpad: https://launchpad.net/upstart
Kind regards,
James.
- --
James Hunt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBAgAGBQJO5zi9AAoJEJ1Q4UTmNXMnJoAQAJBZC+SyNuvCeVUplVhdKUwy
Rrhywx7ul2rPx/ZoyXI/SgVlzRJoKDQGYmgwtbunh2bPn8HdpzkB4Oo0//jNlT6K
6yPVUJ3LOd/JCW3XNOwZqsDDO9eMHKP39yLBLXnjEDglZu2FG7bcdzisDXOXxYF8
xR3Y+Z+eM0YuJuOLnF4s4MByiM8jgJHDQ/N479OkRPnu/Qb9/E46qurp+fq3EokU
uGTn+eCa0bnkbHYLo0d4hE4KCvkXWKtkqXBpZoZUsWtPXKfem3pPPz8nCW/J3YvS
4hSaY6GsBRxz4gmiIDF+nG/zDAJZb4MCQIYFiihBzcRsF5NSKYiac9vUVNX60kdC
89WkdbRDdEQzvXeF1R7bTFtv+HraV1HP8PHh2jExmiliUknEqZVwyvtSWec6EuNj
9vp8lQ/I70N53l9gUi7e+vssYlNlYpTUFkKdfLvmTwoSduJs9ZfldubG/Bnxbhy2
DpzoPvb/Z3WcCdAeDkAgxdMmgsGp0E28SKJZ06OWXAs5yOupFO9cXebOIxEUr57P
WUupmzNO/yz88nsaQ8Cu+823aFIK4xKkNURy+Y7Q63JM8FxXCTBEnujJzxm1zfdE
vOO7SkOLpDr3qj0F0JNck6GDt4RkiunBPy5gO7XqxG9ApkI5YnN3LtvskCv9erhx
QHb7A7D/2tFY1OCB4O0g
=cf3s
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Upstart 1.4 "Let them speak" released
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
0 siblings, 1 reply; 3+ messages in thread
From: Lennart Poettering @ 2011-12-13 11:38 UTC (permalink / raw)
To: James Hunt; +Cc: Upstart Devel List, linux-kernel
On Tue, 13.12.11 11:36, James Hunt (james.hunt@canonical.com) wrote:
Heya,
> * New "log" argument to console stanza allowing a system jobs
> stdout/stderr to be captured to a file. New options added to
> support this feature: '--default-console', '--logdir',
> '--no-log'. This feature only currently applies to system jobs:
> user jobs which specify "console log" will be treated as if they
> had specified "console none".
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?
Lennart
--
Lennart Poettering - Red Hat, Inc.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Upstart 1.4 "Let them speak" released
2011-12-13 11:38 ` Lennart Poettering
@ 2011-12-13 11:48 ` James Hunt
0 siblings, 0 replies; 3+ messages in thread
From: James Hunt @ 2011-12-13 11:48 UTC (permalink / raw)
To: Upstart Devel List, linux-kernel
-----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-----
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-12-13 11:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox