[systemd-devel] Couldn't find service

Piavlo piavka at cs.bgu.ac.il
Sun Sep 12 14:44:50 PDT 2010


Hi Jens,

Thanks for you reply

> If I may guess. Stuff started with @ are not "real" services. Those you
> have to delete manually in the wants directory, i.e
> /etc/systemd/system/getty.target.wants.

> I think it's the right way but the wrong place. "ln -s
> /lib/systemd/system/serial-getty at .service 
> /etc/systemd/system/getty.target.wants/serial-getty at ttyS0.service"
> That should start the getty at boot.

What I did instead is created
/lib/systemd/system/serial-getty.target
similar to /lib/systemd/system/getty.target

created dir /etc/systemd/system/serial-getty.target.wants/ with a symlink
serial-getty at ttyS0.service -> /lib/systemd/system/serial-getty at .service

and delted all symlinks under /etc/systemd/system/getty.target.wants/

rebooted the fedora VM

but i still see getty at tty1.service (while not the rest
getty at tty{2,3,4,5,6}.service)
and also i don't see serial-getty at ttyS0.service (although the work fine)
-----------
root at fedora2 ~]# systemctl --all | grep getty
getty at tty1.service        loaded inactive     dead
getty.target              loaded inactive     dead
serial-getty.target       loaded active       active
root at fedora2 ~]# systemctl status serial-getty at ttyS0.service
serial-getty at ttyS0.service - Serial Getty on ttyS0
          Loaded: loaded (/lib/systemd/system/serial-getty at .service)
          Active: active (running) since [Sun, 12 Sep 2010 23:22:18
+0200; 16min ago]
         Process: 665 (/sbin/securetty %I, code=exited, status=0/SUCCESS)
        Main PID: 678 (login)
          CGroup: name=systemd:/systemd-1/serial-getty at .service/ttyS0
[root at fedora2 ~]#
-----------

Any idea what's wrong?


Another strange  problem I have is that "network.service" is not started
upon boot automatically.
It starts fine manually with "systemctl start network.service"
but for "systemctl enable network.service" I get again "Couldn't find
network.service." error. From stracing I see systemctl it is looking for
network.service file under
/etc/systemd/system/network.service and
/lib/systemd/system/network.service - but the problem is that there is
not "network.service" file anywhere in the filesystem - is this some
kind of virtual service? How can I make it automatically start at boot?

Thanks
Alex

> As I said before, I don't think systemctl works with such symlinks.
> better just make the links manually
> 
> Jens
> 



More information about the systemd-devel mailing list