--no-log option

Ben Diamant bend at checkpoint.com
Sun May 18 08:15:30 UTC 2014


Hey,
I still can’t make it work, I don’t have a physical access to the machine so I can’t access the Linux command menu as expected in the tutorial.
Any other way I can add the –no-log for the init run?

Thanks,
Ben


From: james.hunt at canonical.com [mailto:james.hunt at canonical.com] On Behalf Of James Hunt
Sent: Friday, May 16, 2014 11:13 AM
To: Ben Diamant
Cc: upstart-devel at lists.ubuntu.com
Subject: Re: --no-log option

Hi Ben,

If you read init(8), you'll see that if you run init as a root user (without specifying '--user'), init will re-exec itself and run *telinit*. If you then read telinit(8) or run 'telinit --help' you'll see that it has no '--no-log' option.

Further, you cannot run a second instance of init anyway. To do what you want, you need to add '--no-log' to the kernel command-line set by your bootloader and used by PID 1. An example of how you can do this temporarily is shown in the Cookbook:

http://upstart.ubuntu.com/cookbook/#add-verbose-or-debug-to-the-kernel-command-line

If you want to make such a change permanent and you are running Debian or Ubuntu, modify GRUB_CMDLINE_LINUX in /etc/default/grub and then run 'sudo update-grub'.


2014-05-15 16:34 GMT+01:00 Ben Diamant <bend at checkpoint.com<mailto:bend at checkpoint.com>>:
Hey,
I want upstart processes to stop logging to /var/log/upstart/
But the no log option does not work, I’m on Ubuntu 12.04.

[cid:image001.png at 01CF728A.7A865130]

What’s wrong?

--
upstart-devel mailing list
upstart-devel at lists.ubuntu.com<mailto:upstart-devel at lists.ubuntu.com>
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/upstart-devel


Kind regards,

James.
--
James Hunt
____________________________________
#upstart on freenode
http://upstart.ubuntu.com/cookbook
https://lists.ubuntu.com/mailman/listinfo/upstart-devel


Email secured by Check Point.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20140518/816eb7b6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 2617 bytes
Desc: image001.png
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20140518/816eb7b6/attachment.png>


More information about the upstart-devel mailing list