[systemd-devel] Convert Inittab-Entry to systemd

Daniel Spannbauer ds at marco.de
Tue Aug 27 06:28:51 PDT 2013


Hello,

till now we had the following entry in the /etc/inittab:

X1:5:once:/bin/su - user -c "xinit  /home/user/.xsession -- /usr/bin/X
:1 vt08 -r -br" 1>/tmp/X1.log 2>&1


On our new system systemd is now standard. So I tried to convert this in
a systemd.servce:


[Unit]
Description=Autologin
After=getty.target

[Service]
ExecStart=/bin/su - user -c "xinit  /home/user/.xsession -- /usr/bin/X
:1 vt08 -r -br -dpms -s off" 1>/tmp/X1.log 2>&1
Restart=always


[Install]
WantedBy=multiuser.target


I stored it at /etc/systemd/system as autologin.service, enabled it and
started it. WOrks as expected.
But not at a system-start. There is nothing about the failed autologin
at the system-messages.
systemctl status autologin.service says:

autologin.service - Autologin
          Loaded: loaded (/etc/systemd/system/autologin.service; enabled)
          Active: inactive (dead)
          CGroup: name=systemd:/system/autologin.service


I can't find any messages why the service failed.

Any hints about this?

Regards

Daniel

-- 
Daniel Spannbauer                         Systemadministration
marco Systemanalyse und Entwicklung GmbH  Tel   +49 8333 9233-27 Fax -11
Rechbergstr. 4-6, D 87727 Babenhausen     Mobil +49 171 4033220
http://www.marco.de/                      Email ds at marco.de
Geschäftsführer Martin Reuter             HRB 171775 Amtsgericht München


More information about the systemd-devel mailing list