--no-log option

James Hunt james.hunt at ubuntu.com
Tue May 20 08:32:02 UTC 2014


Hi Ben,

This option cannot be changed after Upstart has started. However assuming
you have ssh access, if you *really* need to disable logging, there is a
hack you could employ temporarily:

for job in /etc/init/*.conf
do
        override=$(echo "$job" | sed 's/\.conf$/.override/g')
        echo 'console none' | sudo tee -a "$override"
done

sudo reboot


This is clearly brittle since any new jobs that get installed after you run
the above will not have the 'console none' until you re-run the above.



2014-05-18 9:15 GMT+01:00 Ben Diamant <bend at checkpoint.com>:

>  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>:
>
> 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.
>
>
>
>
>
> What’s wrong?
>
>
> --
> upstart-devel mailing list
> 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.
>



-- 
Kind regards,

James.
--
James Hunt
____________________________________
#upstart on freenode
http://upstart.ubuntu.com/cookbook
https://lists.ubuntu.com/mailman/listinfo/upstart-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20140520/aeb15fef/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 2617 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20140520/aeb15fef/attachment-0001.png>


More information about the upstart-devel mailing list