mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-25 11:58:44 +08:00
17 lines
359 B
SYSTEMD
17 lines
359 B
SYSTEMD
|
[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
|