1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
| VLMCSD_VERSION=svn113
curl -fsSLO https://github.com/Wind4/vlmcsd/releases/download/$VLMCSD_VERSION/binaries.tar.gz
tar -zxvf binaries.tar.gz
sudo cp -af ./binaries/Linux/intel/glibc/vlmcsd-x64-glibc /usr/local/bin/
chown root:root /usr/local/bin/vlmcsd-x64-glibc
chmod +x /usr/local/bin/vlmcsd-64-glibc
sudo bash -c 'cat > /lib/systemd/system/vlmcsd.service' << EOF
[Unit]
Description=vlmcsd service
[Service]
ExecStart=/usr/local/bin/vlmcsd-x64-glibc -l /var/log/vlmcsd-64-glibc.log > /dev/null 2>&1
Restart=on-failure
RestartSec=42s
[Install]
WantedBy=multi-user.target
EOF
#Reload systemctl daemon
sudo systemctl daemon-reload
#Delete temp directory.
sudo rm -rf ./binaries
sudo rm -rf ./binaries.tar.gz
#Enable service of dcompass auto startup when system reboot
sudo systemctl enable vlmcsd
#Restart service of vlmcsd
sudo systemctl restart vlmcsd
#Check dcompass status of freedns.
sudo systemctl status vlmcsd
|