Commit Graph

6 Commits (392b0679c9f1cd411403dbecc96f436a4de6c5e9)

Author SHA1 Message Date
Jeremy Attali dd596a5c6c fix(systemd): restart when service fails
The current service doesn't play too nice with Sway when it is started
from [sway service](https://github.com/xdbob/sway-services).

Waybar is started before the system has a display.

```
Nov 30 22:11:23 ansan waybar[1352]: Unable to init server: Could not
connect: Connection refused
Nov 30 22:11:23 ansan waybar[1352]: cannot open display:
Nov 30 22:11:23 ansan systemd[1306]: waybar.service: Main process
exited, code=exited, status=1/FAILURE
Nov 30 22:11:23 ansan systemd[1306]: waybar.service: Failed with result
'exit-code'.
```

Restarting the service after the system has been initialized works nicely,
so this restart rule should do the trick without tinkering with the
target.
2020-11-30 23:24:30 -05:00
Maxim Baz d51adfe7bc
systemd: use standard targets, update service type 2020-08-06 23:21:53 +02:00
Дамјан Георгиевски 03130b7565 systemd service: fix start up ordering
the service needs to have After=wayland-session.target otherwise it'll
be started in parallel to the compositor which might not be fully
configured
2020-03-03 22:35:48 +01:00
Дамјан Георгиевски ce50249c04 service file: allow for waybar installed in different prefix 2019-09-10 13:56:34 +02:00
Alex 5bb6fa384d
Revert "service file: allow for waybar installed in different prefix" 2019-09-10 12:06:06 +02:00
Дамјан Георгиевски f152ad9fa9 service file: allow for waybar installed in different prefix 2019-09-08 14:04:34 +02:00