Skip to content

Instantly share code, notes, and snippets.

@zzeroo
Created September 7, 2016 17:19
Show Gist options
  • Save zzeroo/c39709b119744af000510d97515910e9 to your computer and use it in GitHub Desktop.
Save zzeroo/c39709b119744af000510d97515910e9 to your computer and use it in GitHub Desktop.
Weston systemd unit
[Unit]
Description=Weston launcher
RequiresMountsFor=/run
[email protected]
[Service]
Restart=alway
RestartSec=10
User=root
EnvironmentFile=-/etc/default/weston
Environment=XDG_RUNTIME_DIR=/run/user/root
ExecStartPre=/bin/mkdir -p /run/user/root
ExecStartPre=/bin/chmod 0700 /run/user/root
ExecStart=/usr/bin/weston --tty=1 --log=/var/log/weston.log
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment