I used this to help me make the service: https://wiki.archlinux.org/index.php/Systemd/Services
Here is my service (/etc/systemd/system/Xvfb.service):
Code: Select all
[Unit]
Description=Xvfb headless plotting
After=network.target
[Service]
User=ldm
SyslogIdentifier=%p
ExecStart=/usr/bin/Xvfb :1 -screen 0 1280x1024x24
[Install]
WantedBy=multi-user.target