[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to autologin with systemd?



On Sun, 2016-02-28 at 23:38 +0100, Gregor Zattler wrote:
> /etc/systemd/system/getty@tty1.service.d/override.conf:
> 
> [Service]
> ExecStart=-/sbin/agetty -a my-user-name --noclear %I $TERM
> Type=idle

Like the ArchWiki page you linked suggests, you'll need to add an empty
ExecStart= line into `override.conf'. Like:

    [Service]
    ExecStart=
    ExecStart=-/sbin/agetty -a my-user-name --noclear %I $TERM
    Type=idle

If you're curious about what that does, systemd.service(5) says: 
> ExecStart=
> ...
> If the empty string is assigned to this option, the list of  
> commands to start is reset, prior assignments of this option will
> have no effect.

(The error message in Michael's response is helpful, too.)

-austin


Reply to: