systemd – start service when you enable it
2017-03-13
50 words
1 min read
More often than not for any service, I end up doing :
systemctl enable <service> systemctl start <service>
But there is shorcut to this. In systemctl command when you enable the service, you can use “–now” to start the service as follows:
systemctl enable --now <service>
quite a timesaver 🙂
Related Articles:
- 2013/12/12 get systemd journal entries on web interface.
- 2013/09/16 findmnt – find all the mounts and their source
- 2012/04/17 systemadm – simpler way to manage the service files for systemd
- 2010/08/26 Gmail Videochat Comes to Linux
- 2017/03/06 Linux Best Practices and Tips
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.