Can you please add an ability to enable and start service in one command? In most cases I run: systemctl enable name.service systemctl start name.service Sometimes I forgot to enable service and it's only started and does not run on next boot. Can you please add an: systemctl enable-and-start name.service subcommand or something similar to do this in one command? Thank you.
I think we should add something like this. Maybe '--start' option to 'enable' verb? If we add this, we shouldn't forget about symmetric combination for disabling: 'systemctl --stop disable'?
(In reply to comment #1) > I think we should add something like this. Maybe '--start' option to > 'enable' verb? > > If we add this, we shouldn't forget about symmetric combination for > disabling: > 'systemctl --stop disable'? Sounds sensible. Though we need to be carefully not to tape over too much over the differences between units and unit files. i.e. we need to handle nicely that template unit files can be enabled but not started...
Implemented in git: http://cgit.freedesktop.org/systemd/systemd/commit/?id=57ab2eabb8f92fad5239c7d4492e9c6e23ee0678
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.