mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-26 12:33:09 +08:00
17 lines
341 B
Plaintext
17 lines
341 B
Plaintext
|
[Unit]
|
||
|
Description=Start TigerVNC server at startup
|
||
|
After=syslog.target network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=forking
|
||
|
PAMName=login
|
||
|
User=%u
|
||
|
|
||
|
PIDFile=/home/%u/.vnc/%H:1.pid
|
||
|
ExecStartPre=-/usr/bin/vncserver -kill :1 > /dev/null 2>&1
|
||
|
ExecStart=/usr/bin/vncserver -depth 24 :1
|
||
|
ExecStop=/usr/bin/vncserver -kill :1
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|