[systemd-devel] Couldn't find service

Piavlo piavka at cs.bgu.ac.il
Sun Sep 12 07:30:51 PDT 2010


Hi,

If this mailing list is not appropriate place to ask such questions, can
you point me to the correct one?

Thanks
Alex

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
>
> --------------------
> [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?
>
> ----------------------
> [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 ~]#
> ----------------------
>
> PS
> -----------
> [root at fedora2 ~]# rpm -qa | grep systemd
> systemd-sysvinit-9-3.fc14.x86_64
> systemd-units-9-3.fc14.x86_64
> systemd-9-3.fc14.x86_64
> [root at fedora2 ~]# cat /etc/issue
> Fedora release 14 (Laughlin)
> Kernel \r on an \m (\l)
>
> [root at fedora2 ~]# uname -a
> Linux fedora2.xxxxx.xxxx 2.6.35.4-12.fc14.x86_64 #1 SMP Fri Aug 27
> 07:45:05 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
> [root at fedora2 ~]#
> -----------
>
> Thanks
> Alex
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>   



More information about the systemd-devel mailing list