Last active
April 22, 2022 23:12
-
-
Save dloman/931d65cbb79b00593ac3dd5d0cdf37d9 to your computer and use it in GitHub Desktop.
sytemd xvfb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=X Virtual Frame Buffer Service | |
After=network.target | |
[Service] | |
ExecStart=/usr/bin/Xvfb :1 -screen 0 1024x768x24 -ac +extension GLX +render -noreset | |
[Install] | |
WantedBy=multi-user.target |
copy this file into /etc/systemd/system/xvfb.service
then run
sudo systemctl enable /etc/systemd/system/xvfb.service
then to start xvfb run:
sudo systemctl start xvfb.service
and to stop xvfb run:
sudo systemctl stop xvfb.service
Will this script autorun at system startup if I enable it as service?
no I believe in order to do that you should use the command
sudo systemctl enable xvfb
For reference, here is the /etc/init.d
version https://gist.github.com/dloman/8303932
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you can also templatize the
:1
value so if you wanted to start up lots of different servers