mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-25 02:38:42 +08:00
17 lines
359 B
Desktop File
17 lines
359 B
Desktop File
[Unit]
|
|
Description=Start TightVNC server at startup
|
|
After=syslog.target network.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
User=user
|
|
Group=group
|
|
WorkingDirectory=/home/user
|
|
|
|
PIDFile=/home/user/.vnc/%H:1.pid
|
|
ExecStartPre=-/usr/bin/vncserver -kill :* > /dev/null 2>&1
|
|
ExecStart=/usr/bin/vncserve :1
|
|
ExecStop=/usr/bin/vncserver -kill :1
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |