Comment 2 for bug 282854

Revision history for this message
James Hunt (jamesodhunt) wrote :

This would indeed be a useful feature.

However, as Scott says, the scope of the patch is too limited right now though since if we allow 'limit' to be used globally, we should also allow the following stanzas in /etc/init.conf:

- env
- export
- console
- umask
- nice
- oom
- chroot
- chdir
- limit
- kill
- kill timeout

Adding support for these stanzas "piecemeal" is not a good idea IMHO since it would frustrate/confuse users expecting all/most of the currently supported stanzas to work in /etc/init.conf.

There is also the matter of adding support to handle /etc/init.override for all of the above.

Further, we would need:

- a full set of tests for all of the above.
- an update to the init.5 man page.

Also, we would need to consider how /etc/init.conf would work from the perspective of user sessions. Finally, we need to decide the precedence of entries in /etc/init.conf versus specifying a default on the init command line (the latter should probably take priority).