[systemd-devel] Couldn't find service

Jens Persson xerxes2 at gmail.com
Sun Sep 12 08:07:41 PDT 2010


On Sun, Sep 12, 2010 at 4:30 PM, Piavlo <piavka at cs.bgu.ac.il> wrote:

>
> Hi,
>
> If this mailing list is not appropriate place to ask such questions, can
> you point me to the correct one?
>
> You could always try irc #systemd at freenode.

>
> On 09/06/2010 12:44 PM, Piavlo wrote:
> > Hi,
> >
> > I several issues questions:
> >
> > --------------------
> > [root at fedora2 ~]# systemctl status getty at tty6.service
> > getty at tty6.service - Getty on tty6
> > Loaded: loaded (/lib/systemd/system/getty at .service)
> > Active: active (running) since [Mon, 06 Sep 2010 12:17:55 +0300; 7min
> ago]
> > Main PID: 679 (mingetty)
> > CGroup: name=systemd:/systemd-1/getty at .service/tty6
> > └ 679 /sbin/mingetty tty6
> > [root at fedora2 ~]# systemctl stop getty at tty6.service
> > [root at fedora2 ~]# systemctl status getty at tty6.service
> > getty at tty6.service - Getty on tty6
> > Loaded: loaded (/lib/systemd/system/getty at .service)
> > Active: inactive (dead) since [Mon, 06 Sep 2010 12:25:54 +0300; 2s ago]
> > Main PID: 679 (code=killed, signal=HUP)
> > CGroup: name=systemd:/systemd-1/getty at .service/tty6
> > [root at fedora2 ~]# systemctl disable getty at tty6.service
> > Couldn't find getty at tty6.service.
> > [root at fedora2 ~]#
> > ---------------------
> >
> > why disable does not work?
> >
> > same problem with enable and is-enabled
> >
>
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.

> > --------------------
> > [root at fedora2 ~]# systemctl status network.target
> > network.target - Network
> > Loaded: loaded (/lib/systemd/system/network.target)
> > Active: active since [Mon, 06 Sep 2010 12:30:18 +0300; 1min 41s ago]
> > [root at fedora2 ~]# systemctl status network.service
> > network.service - LSB: Bring up/down networking
> > Loaded: loaded (/etc/rc.d/init.d/network)
> > Active: inactive (dead)
> > CGroup: name=systemd:/systemd-1/network.service
> > [root at fedora2 ~]# systemctl enable network.service
> > Couldn't find network.service.
> > [root at fedora2 ~]#
> > [root at fedora2 ~]# systemctl is-enabled network.service
> > Couldn't find network.service.
> > [root at fedora2 ~]#
> > [root at fedora2 ~]# systemctl start network.service
> > Bringing up loopback interface: [ OK ]
> > Bringing up interface eth0:
> > Determining IP information for eth0... done.
> > [ OK ]
> > [root at fedora2 ~]#
> > [root at fedora2 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
> > DEVICE="eth0"
> > HWADDR="00:50:56:3E:13:C7"
> > NM_CONTROLLED="no"
> > ONBOOT="yes"
> > BOOTPROTO="dhcp"
> > [root at fedora2 ~]#
> > -----------------------
> >
> > In order to start
> > serial console I had to make the following link manually
> > /etc/systemd/system/serial-getty at ttyS0.service ->
> > /lib/systemd/system/serial-getty at .service
> > but this does not seems as correct way
> > how can i do this with systemctl instead?
> >
>
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.

> > ----------------------
> > [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 [Mon, 06 Sep 2010 12:30:46 +0300; 9min
> ago]
> > Process: 736 (/sbin/securetty %I, code=exited, status=0/SUCCESS)
> > Main PID: 738 (login)
> > CGroup: name=systemd:/systemd-1/serial-getty at .service/ttyS0
> > [root at fedora2 ~]# systemctl enable serial-getty at ttyS0.service
> > Refusing to operate on symlinks, please pass unit names or absolute
> > paths to unit files.
> > [root at fedora2 ~]# systemctl is-enabled serial-getty at ttyS0.service
> > Refusing to operate on symlinks, please pass unit names or absolute
> > paths to unit files.
> > [root at fedora2 ~]#
> > ----------------------
>
As I said before, I don't think systemctl works with such symlinks. better
just make the links manually.

Jens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20100912/a0ac79ab/attachment.html>


More information about the systemd-devel mailing list