|
|
Subscribe / Log in / New account

Intel and XMir

Intel and XMir

Posted Oct 1, 2013 12:21 UTC (Tue) by JanC_ (guest, #34940)
In reply to: Intel and XMir by niner
Parent article: Intel and XMir

AFAIK there is no guarantee that your unit files will work (as intended) on every systemd-based distro?


to post comments

Intel and XMir

Posted Oct 1, 2013 12:31 UTC (Tue) by niner (subscriber, #26151) [Link]

Is there a guarantee? Probably not. But I never said I was guaranteed. I said I can be quite sure. For example the following few lines will probably work on every systemd distribution:

[Unit]
Description=X Window Virtual Framebuffer
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/Xvfb -screen 0 800x600x24
Restart=always

[Install]
WantedBy=multi-user.target

There might be some obscure system where this might not work. Maybe. Small chance.

Now write a SysV init script that does the same and works on at least the major distributions. After network's up, Xvfb should be started with the given parameters and if it crashes it should be restarted. It should by default be enabled in a multi-user runlevel. And to make things interesting: do it without having these distributions to test. Bonus points for not even having to try to find distribution specific documentation.

Systemd makes this so, so, so much easier. Finally.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds