Im trying to write a systemd script which starts Xvfb in the background.
Doing this in the console is no problem of course with appended "&".
But i tried to write a systemd script and when im starting it manually with
service xvfb start
it seems that its never send to the background as there is never a prompt after running this command.
This is the script:
[Unit]
Description=Xvfb
After=tomcat.service
[Timer]
# Time to wait after booting before we run first time
OnBootSec=1min
[Service]
Type=forking
User=test
Group=test
ExecStart=/usr/bin/Xvfb :99
ExecStop=/bin/kill -15 $MAINPID
[Install]
WantedBy=multi-user.target
Do i need maybe to use another type?
systemctl start <srv>
notservice <srv> start
.