File sapvnc.service of Package sapvnc
[Unit]
Description=root's VNC desktop for system maintenance and SAP installation
After=network.target
[Service]
ExecStartPre=/bin/bash -c '/usr/bin/vncserver -kill :1 &> /dev/null || true'
ExecStart=/usr/bin/vncserver :1 -name root -geometry 1280x900 -depth 24 -SecurityTypes None -AlwaysShared -IdleTimeout 0 -localhost
ExecStop=/bin/bash -c '/usr/bin/vncserver -kill :1 || true'
PIDFile=/root/.vnc/%H:1.pid
User=root
Group=root
WorkingDirectory=/root
PrivateTmp=true
RestartSec=1
Restart=always
[Install]
WantedBy=multi-user.target