You are not logged in.
Offline
systemctl enable ntpd.service is the only one that worked for me. This is fresh install, if that matters.
Offline
Service files all have the .service suffix: you should be able to use bash completion to print out the full name.
Offline
Thank you very much.
Could someone comment on why both commands are on the wiki?
Offline
Because they should both work; ".service" is assumed.
Offline
Read the systemd wiki page.
When using systemctl, you generally have to specify the complete name of the unit file, including its suffix, for example sshd.socket. There are however a few shortforms when specifying the unit in the following systemctl commands:
If you don't specify the suffix, systemctl will assume .service. For example, netcfg and netcfg.service are treated equivalent.
Last edited by 2ManyDogs (2012-11-02 03:14:17)
Offline
Thank you very much.
Could someone comment on why both commands are on the wiki?
Both should work since the latest systemd update. Allan McRae hinted at this in his blogpost (or somewhere down in the comments): http://allanmcrae.com/2012/08/are-we-re … rch-linux/
Can't seem to find any news about this but I've noticed that # systemctl stop foo effectively stops the foo daemon, as well as # systemctl stop foo.service.
I've tried with sshd and gdm.
Last edited by endived (2012-11-02 03:23:56)
Offline