On Sun, Sep 12, 2010 at 4:30 PM, Piavlo <span dir="ltr"><<a href="mailto:piavka@cs.bgu.ac.il">piavka@cs.bgu.ac.il</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Hi,<br>
<br>
If this mailing list is not appropriate place to ask such questions, can<br>
you point me to the correct one?<br>
<br></blockquote><div>You could always try irc #systemd at freenode. <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5"><br>
On 09/06/2010 12:44 PM, Piavlo wrote:<br>
> Hi,<br>
><br>
> I several issues questions:<br>
><br>
> --------------------<br>
> [root@fedora2 ~]# systemctl status getty@tty6.service<br>
> getty@tty6.service - Getty on tty6<br>
> Loaded: loaded (/lib/systemd/system/getty@.service)<br>
> Active: active (running) since [Mon, 06 Sep 2010 12:17:55 +0300; 7min ago]<br>
> Main PID: 679 (mingetty)<br>
> CGroup: name=systemd:/systemd-1/getty@.service/tty6<br>
> └ 679 /sbin/mingetty tty6<br>
> [root@fedora2 ~]# systemctl stop getty@tty6.service<br>
> [root@fedora2 ~]# systemctl status getty@tty6.service<br>
> getty@tty6.service - Getty on tty6<br>
> Loaded: loaded (/lib/systemd/system/getty@.service)<br>
> Active: inactive (dead) since [Mon, 06 Sep 2010 12:25:54 +0300; 2s ago]<br>
> Main PID: 679 (code=killed, signal=HUP)<br>
> CGroup: name=systemd:/systemd-1/getty@.service/tty6<br>
> [root@fedora2 ~]# systemctl disable getty@tty6.service<br>
> Couldn't find getty@tty6.service.<br>
> [root@fedora2 ~]#<br>
> ---------------------<br>
><br>
> why disable does not work?<br>
><br>
> same problem with enable and is-enabled<br>
><br></div></div></blockquote><div>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.<br></div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div class="h5">
> --------------------<br>
> [root@fedora2 ~]# systemctl status network.target<br>
> network.target - Network<br>
> Loaded: loaded (/lib/systemd/system/network.target)<br>
> Active: active since [Mon, 06 Sep 2010 12:30:18 +0300; 1min 41s ago]<br>
> [root@fedora2 ~]# systemctl status network.service<br>
> network.service - LSB: Bring up/down networking<br>
> Loaded: loaded (/etc/rc.d/init.d/network)<br>
> Active: inactive (dead)<br>
> CGroup: name=systemd:/systemd-1/network.service<br>
> [root@fedora2 ~]# systemctl enable network.service<br>
> Couldn't find network.service.<br>
> [root@fedora2 ~]#<br>
> [root@fedora2 ~]# systemctl is-enabled network.service<br>
> Couldn't find network.service.<br>
> [root@fedora2 ~]#<br>
> [root@fedora2 ~]# systemctl start network.service<br>
> Bringing up loopback interface: [ OK ]<br>
> Bringing up interface eth0:<br>
> Determining IP information for eth0... done.<br>
> [ OK ]<br>
> [root@fedora2 ~]#<br>
> [root@fedora2 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0<br>
> DEVICE="eth0"<br>
> HWADDR="00:50:56:3E:13:C7"<br>
> NM_CONTROLLED="no"<br>
> ONBOOT="yes"<br>
> BOOTPROTO="dhcp"<br>
> [root@fedora2 ~]#<br>
> -----------------------<br>
><br>
> In order to start<br>
> serial console I had to make the following link manually<br>
> /etc/systemd/system/serial-getty@ttyS0.service -><br>
> /lib/systemd/system/serial-getty@.service<br>
> but this does not seems as correct way<br>
> how can i do this with systemctl instead?<br>
><br></div></div></blockquote>I think it's the right way but the wrong place. "ln -s /lib/systemd/system/serial-getty@.service /etc/systemd/system/getty.target.wants/serial-getty@ttyS0.service"<br>That should start the getty at boot.<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div class="h5">
> ----------------------<br>
> [root@fedora2 ~]# systemctl status serial-getty@ttyS0.service<br>
> serial-getty@ttyS0.service - Serial Getty on ttyS0<br>
> Loaded: loaded (/lib/systemd/system/serial-getty@.service)<br>
> Active: active (running) since [Mon, 06 Sep 2010 12:30:46 +0300; 9min ago]<br>
> Process: 736 (/sbin/securetty %I, code=exited, status=0/SUCCESS)<br>
> Main PID: 738 (login)<br>
> CGroup: name=systemd:/systemd-1/serial-getty@.service/ttyS0<br>
> [root@fedora2 ~]# systemctl enable serial-getty@ttyS0.service<br>
> Refusing to operate on symlinks, please pass unit names or absolute<br>
> paths to unit files.<br>
> [root@fedora2 ~]# systemctl is-enabled serial-getty@ttyS0.service<br>
> Refusing to operate on symlinks, please pass unit names or absolute<br>
> paths to unit files.<br>
> [root@fedora2 ~]#<br>
> ----------------------<br></div></div></blockquote><div>As I said before, I don't think systemctl works with such symlinks. better just make the links manually.<br><br>Jens <br></div></div><br>