Difference between revisions of "How to stop and start Weston"

[quality revision] [quality revision]
m
(Merge articles)
 

1 Starting, stopping and restarting Weston[edit]

Weston has its own systemd service (/lib/systemd/system/weston.service) to easily start, stop and restart Weston.

The following command stops the Weston service:

Board $> systemctl stop weston@root.service


The following command starts the Weston service:

Board $> systemctl start weston@root.service

The following command stops and then restarts the Weston service:

Board $> systemctl restart weston@root.service

2 Preventing Weston from automatically starting on boot[edit]

2.1 Weston service with udev rules[edit]

The Weston service is automatically started on boot thanks to an udev rules file, most of the time located in /etc/udev/rules.d/*weston*, for instance /etc/udev/rules.d/71-weston-drm.rules.

To disable this service, rename this file (by changing its extension for instance), then restart your board.

To re-enable this service, rename this file according to the udev rules of your system.

2.2 Weston service with systemd and root user[edit]

During the development process, when udev rules are not fully configured, the Weston service can be automatically started on boot as specified in /lib/systemd/system/weston*. service. The

In this case, the following command disables the automatic start of the Weston service:

Board $> systemctl disable weston@root.service

Note: The following command enables the automatic start of the Weston service:

Board $> systemctl enable weston@root.service



==Starting, stopping and restarting Weston==
Weston has its own '''systemd''' service (/lib/systemd/system/weston.service) to easily start, stop and restart Weston.

The following command stops the Weston service:
 {{board$}} systemctl stop weston@root.service

The following command starts the Weston service:
 {{board$}} systemctl start weston@root.service

The following command stops and then restarts the Weston service:
 {{board$}} systemctl restart weston@root.service

==Preventing Weston from automatically starting on boot===== Weston service with udev rules ===The Weston service is automatically started on boot as specified in thanks to an '''udev rules''' file, most of the time located in '''/etc/udev/rules.d/*weston*''', for instance '''/etc/udev/rules.d/71-weston-drm.rules'''.

To disable this service, rename this file (by changing its extension for instance), then restart your board.

To re-enable this service, rename this file according to the udev rules of your system.

=== Weston service with systemd and root user ===
During the development process, when udev rules are not fully configured, the Weston service can be automatically started on boot as specified in '''/lib/systemd/system/weston.service.

The *'''.

In this case, the following command disables the automatic start of the Weston service:
 {{board$}} systemctl disable weston@root.service

Note: The following command enables the automatic start of the Weston service:
 {{board$}} systemctl enable weston@root.service
<noinclude>

{{PublicationRequestId | 9279 | 2019-10-16 | AnneJ}}
[[Category:How to run use cases]]
[[Category:Wayland Weston]]</noinclude>
Line 13: Line 13:
   
 
==Preventing Weston from automatically starting on boot==
 
==Preventing Weston from automatically starting on boot==
The Weston service is automatically started on boot as specified in /lib/systemd/system/weston.service.
+
=== Weston service with udev rules ===
  +
The Weston service is automatically started on boot thanks to an '''udev rules''' file, most of the time located in '''/etc/udev/rules.d/*weston*''', for instance '''/etc/udev/rules.d/71-weston-drm.rules'''.
   
The following command disables the automatic start of the Weston service:
+
To disable this service, rename this file (by changing its extension for instance), then restart your board.
  +
 
  +
To re-enable this service, rename this file according to the udev rules of your system.
  +
 
  +
=== Weston service with systemd and root user ===
  +
During the development process, when udev rules are not fully configured, the Weston service can be automatically started on boot as specified in '''/lib/systemd/system/weston*'''.
  +
 
  +
In this case, the following command disables the automatic start of the Weston service:
 
  {{board$}} systemctl disable weston@root.service
 
  {{board$}} systemctl disable weston@root.service