[Unit] Description=run x11vnc as a service [Service] Type=simple User=sasha WorkingDirectory=/home/sasha ExecStart=sh /home/sasha/vncstart.sh ExecStop=killall x11vnc [Install] WantedBy=graphical.target