Skip to content

Instantly share code, notes, and snippets.

@subosito
Created December 7, 2012 00:39
Show Gist options
  • Save subosito/4229769 to your computer and use it in GitHub Desktop.
Save subosito/4229769 to your computer and use it in GitHub Desktop.
xinit service on systemd
systemctl enable xinit.service
# /etc/systemd/system/xinit.service
[Unit]
Description=Autologin to X
After=systemd-user-sessions.service
[Service]
ExecStart=/bin/su - -- subosito -l -c 'xinit -- /usr/bin/X -nolisten tcp vt7 </dev/null >/dev/null 2>&1'
StandardOutput=syslog
[Install]
WantedBy=multi-user.target
@ynifamily3
Copy link

It was referenced in archlinux configuration. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment