You are not logged in.
Pages: 1
Hi all,
I am a little bit confused about starting up automatically services or different things at startup. For example systemctl is-enabled sshd.socket output is enabled, but then I also have to start sshd.socket with systemctl start sshd.socket manually. So basically two things have to be done? Enabling and starting? Maybe I am mixing up something!
Thanks for help!
Last edited by madhias (2015-11-24 19:49:44)
Offline
If you enable a unit, it doesn't get started immediatly: https://wiki.archlinux.org/index.php/Sy … sing_units
Offline
When it is enabled, it will start at boot. Enabling while booted does not start it. So, if it is not running and you want it now, start it. If you wan it to run automatically next time you boot, enable it. If you don't ever want to to run, disable it.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
In addition:
If you want to enable a service and directly start it, instead of calling both start and enable separately, you can pass the "--now" flag to the enable function.
like this:
$ systemctl enable sshd.socket --nowThis will start the service immediately and also start it on reboot.
Offline
Thanks for all your answers and clarification! As I saw right now sshd.socket was correctly enabled at boot. journalctl -u ssh.socket told me that the listening on the unit has started!
Offline
Pages: 1