Upstart 1.4 "Let them speak" released
-----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-----
On Tue, 13.12.11 11:36, James Hunt ([email protected]) wrote:
Heya,
Quoted 6 lines
* 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
Signature · 1 line
Lennart Poettering - Red Hat, Inc.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Lennart,
Quoted 4 lines · Lennart Poettering
On Tue, 13.12.11 11:36, James Hunt ([email protected]) 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-----