Commit 38f831ef authored by Guido Gunther's avatar Guido Gunther

Add phosh unit file

We put this alongside weston until we have some other bugs fixed.  Once
phosh becomes default we'll drop it from here and ship it in the phosh
package.
parent 81e7cb1b
[Unit]
Description=Weston, a Wayland compositor, as a system service
Documentation=man:weston(1) man:weston.ini(5)
Documentation=http://wayland.freedesktop.org/
# Make sure we are started after logins are permitted.
After=systemd-user-sessions.service
# If Plymouth is used, we want to start when it is on its way out.
After=plymouth-quit-wait.service
# D-Bus is necessary for contacting logind. Logind is required.
Wants=dbus.socket
After=dbus.socket
# This scope is created by pam_systemd when logging in as the user.
# This directive is a workaround to a systemd bug, where the setup of the
# user session by PAM has some race condition, possibly leading to a failure.
# See README for more details.
After=session-c1.scope
# Since we are part of the graphical session, make sure we are started before
# it is complete.
Before=graphical.target
# Prevent starting on systems without virtual consoles, Weston requires one
# for now.
ConditionPathExists=/dev/tty0
[Service]
ExecStart=/usr/lib/wlroots/rootston -E /usr/lib/phosh/phosh
TimeoutStartSec=60
#WatchdogSec=20
User=purism
PAMName=login
WorkingDirectory=/home/purism
# A virtual terminal is needed.
TTYPath=/dev/tty7
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
# Fail to start if not controlling the tty.
StandardInput=tty-fail
# Log this user with utmp, letting it show up with commands 'w' and 'who'.
UtmpIdentifier=tty7
UtmpMode=user
[Install]
WantedBy=graphical.target
......@@ -136,8 +136,8 @@ function setup_gui()
for group in weston-launch video audio; do
chroot "${basedir}" adduser purism "${group}"
done
# Will move into a debian package once we have build infra
cp data/weston.service "${basedir}/etc/systemd/system/"
# Until phosh becomes the default
cp data/{weston,phosh}.service "${basedir}/etc/systemd/system/"
chroot "${basedir}" systemctl enable weston.service
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment