mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-25 02:38:42 +08:00
17 lines
341 B
Django/Jinja
17 lines
341 B
Django/Jinja
[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
|