Discussion:
Weston at bootup
deepan muthusamy
2018-09-18 13:37:00 UTC
Permalink
Not able to start Weston at bootup as system service.
Andrea Giammarchi
2018-09-18 14:03:08 UTC
Permalink
I've previously tested with this service and it used to work without issues:

[Unit] Description=Weston Conflicts=***@tty1.service
After=***@tty1.service systemd-user-sessions.service [Service]
User=YOUR_USER Restart=always RestartSec=2 TimeoutSec=2
EnvironmentFile=/etc/environment ExecStart=/usr/bin/weston-launch
IgnoreSIGPIPE=no StandardOutput=syslog StandardError=inherit
StandardInput=tty TTYPath=/dev/tty1 [Install] Alias=display-manager.service
Post by deepan muthusamy
Not able to start Weston at bootup as system service.
_______________________________________________
wayland-devel mailing list
https://lists.freedesktop.org/mailman/listinfo/wayland-devel
deepan muthusamy
2018-09-18 16:21:17 UTC
Permalink
Did you launched as session service?

I want to launch as system service. Have you tried that?
Post by Andrea Giammarchi
User=YOUR_USER Restart=always RestartSec=2 TimeoutSec=2
EnvironmentFile=/etc/environment ExecStart=/usr/bin/weston-launch
IgnoreSIGPIPE=no StandardOutput=syslog StandardError=inherit
StandardInput=tty TTYPath=/dev/tty1 [Install] Alias=display-manager.service
Post by deepan muthusamy
Not able to start Weston at bootup as system service.
_______________________________________________
wayland-devel mailing list
https://lists.freedesktop.org/mailman/listinfo/wayland-devel
Daniel Stone
2018-09-18 16:29:34 UTC
Permalink
Hi Deepan,
Post by deepan muthusamy
Did you launched as session service?
I want to launch as system service. Have you tried that?
It sounds like you are having a problem, but there aren't enough details in
your mails for us to help you. Have you already tried running it? There is
an example systemd unit file given for running as a system service posted
in this thread, which is the first Google hit for 'weston systemd': have
you tried that?

https://lists.freedesktop.org/archives/wayland-devel/2017-November/035973.html

If this is not sufficient, please follow up with specifics of what you have
actually tried, and how that is failing for you (what you expected to
happen, what really happened, any log output, etc).

Cheers,
Daniel
deepan muthusamy
2018-09-21 10:46:41 UTC
Permalink
Hi,

I tried the same thing in the link which you provided. It's starting but
Weston is getting restart for every 90 sec.

My service file is as follows:

[Unit]
Description: launch Weston

Requires= dbus.socket dbus.service systemd-user-sessions.service

After= dbus.socket dbus.service systemd-user-sessions.service

[Service]
Type= notify
User=root
Restart=on-failure
ExecStart=/use/bin/Weston
PAMName=login
StandardInput=tty-fail
TTYPath=/dev/tty7
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
UtmpIdentifier=tty7
UtmpMode=user

[Install]
WantedBy=basic.target




"systemctl status launch Weston.service" gives

Account root has password changed in future.
Session opened for user root by root(uid=0)


What can be the possible reason?
Post by Daniel Stone
Hi Deepan,
Post by deepan muthusamy
Did you launched as session service?
I want to launch as system service. Have you tried that?
It sounds like you are having a problem, but there aren't enough details
in your mails for us to help you. Have you already tried running it? There
is an example systemd unit file given for running as a system service
have you tried that?
https://lists.freedesktop.org/archives/wayland-devel/2017-November/035973.html
If this is not sufficient, please follow up with specifics of what you
have actually tried, and how that is failing for you (what you expected to
happen, what really happened, any log output, etc).
Cheers,
Daniel
Singh, Satyeshwar
2018-09-22 03:02:33 UTC
Permalink
Hi Deepan,
Do you have any Weston logs when it restarts? Maybe you want to add --log option to redirect all output to some log file and share that with us?
-Satyeshwar

From: wayland-devel [mailto:wayland-devel-***@lists.freedesktop.org] On Behalf Of deepan muthusamy
Sent: Friday, September 21, 2018 3:47 AM
To: Daniel Stone <***@fooishbar.org>
Cc: Andrea Giammarchi <***@gmail.com>; wayland-***@lists.freedesktop.org
Subject: Re: Weston at bootup

Hi,

I tried the same thing in the link which you provided. It's starting but Weston is getting restart for every 90 sec.

My service file is as follows:

[Unit]
Description: launch Weston

Requires= dbus.socket dbus.service systemd-user-sessions.service

After= dbus.socket dbus.service systemd-user-sessions.service

[Service]
Type= notify
User=root
Restart=on-failure
ExecStart=/use/bin/Weston
PAMName=login
StandardInput=tty-fail
TTYPath=/dev/tty7
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
UtmpIdentifier=tty7
UtmpMode=user

[Install]
WantedBy=basic.target




"systemctl status launch Weston.service" gives

Account root has password changed in future.
Session opened for user root by root(uid=0)


What can be the possible reason?

On Tue, 18 Sep 2018, 9:59 pm Daniel Stone, <***@fooishbar.org<mailto:***@fooishbar.org>> wrote:
Hi Deepan,

On Tue, 18 Sep 2018 at 17:24, deepan muthusamy <***@gmail.com<mailto:***@gmail.com>> wrote:
Did you launched as session service?

I want to launch as system service. Have you tried that?

It sounds like you are having a problem, but there aren't enough details in your mails for us to help you. Have you already tried running it? There is an example systemd unit file given for running as a system service posted in this thread, which is the first Google hit for 'weston systemd': have you tried that?

https://lists.freedesktop.org/archives/wayland-devel/2017-November/035973.html

If this is not sufficient, please follow up with specifics of what you have actually tried, and how that is failing for you (what you expected to happen, what really happened, any log output, etc).

Cheers,
Daniel

Loading...