On Sun, Sep 12, 2010 at 4:30 PM, Piavlo <pia...@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: > > > > -------------------- > > [r...@fedora2 ~]# systemctl status ge...@tty6.service > > ge...@tty6.service - Getty on tty6 > > Loaded: loaded (/lib/systemd/system/ge...@.service) > > Active: active (running) since [Mon, 06 Sep 2010 12:17:55 +0300; 7min > ago] > > Main PID: 679 (mingetty) > > CGroup: name=systemd:/systemd-1/ge...@.service/tty6 > > └ 679 /sbin/mingetty tty6 > > [r...@fedora2 ~]# systemctl stop ge...@tty6.service > > [r...@fedora2 ~]# systemctl status ge...@tty6.service > > ge...@tty6.service - Getty on tty6 > > Loaded: loaded (/lib/systemd/system/ge...@.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/ge...@.service/tty6 > > [r...@fedora2 ~]# systemctl disable ge...@tty6.service > > Couldn't find ge...@tty6.service. > > [r...@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. > > -------------------- > > [r...@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] > > [r...@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 > > [r...@fedora2 ~]# systemctl enable network.service > > Couldn't find network.service. > > [r...@fedora2 ~]# > > [r...@fedora2 ~]# systemctl is-enabled network.service > > Couldn't find network.service. > > [r...@fedora2 ~]# > > [r...@fedora2 ~]# systemctl start network.service > > Bringing up loopback interface: [ OK ] > > Bringing up interface eth0: > > Determining IP information for eth0... done. > > [ OK ] > > [r...@fedora2 ~]# > > [r...@fedora2 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 > > DEVICE="eth0" > > HWADDR="00:50:56:3E:13:C7" > > NM_CONTROLLED="no" > > ONBOOT="yes" > > BOOTPROTO="dhcp" > > [r...@fedora2 ~]# > > ----------------------- > > > > In order to start > > serial console I had to make the following link manually > > /etc/systemd/system/serial-ge...@ttys0.service -> > > /lib/systemd/system/serial-ge...@.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-ge...@.service /etc/systemd/system/getty.target.wants/serial-ge...@ttys0.service" That should start the getty at boot. > > ---------------------- > > [r...@fedora2 ~]# systemctl status serial-ge...@ttys0.service > > serial-ge...@ttys0.service - Serial Getty on ttyS0 > > Loaded: loaded (/lib/systemd/system/serial-ge...@.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-ge...@.service/ttyS0 > > [r...@fedora2 ~]# systemctl enable serial-ge...@ttys0.service > > Refusing to operate on symlinks, please pass unit names or absolute > > paths to unit files. > > [r...@fedora2 ~]# systemctl is-enabled serial-ge...@ttys0.service > > Refusing to operate on symlinks, please pass unit names or absolute > > paths to unit files. > > [r...@fedora2 ~]# > > ---------------------- > As I said before, I don't think systemctl works with such symlinks. better just make the links manually. Jens
_______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel