#vi /lib/systemd/system/vlmcsd.service
[Shell] 純文本查看 複制代碼 [Unit]
Description=KMS Server By vlmcsd
After=network.target
[Service]
Type=forking
PIDFile=/var/run/vlmcsd.pid
ExecStart=/usr/bin/vlmcsd -p /var/run/vlmcsd.pid
ExecStop=/bin/kill -HUP $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target
#systemctl daemon-reload
#systemctl start vlmcsd
#systemctl enable vlmcsd
Reference: https://www.codeonway.com/2017/0 ... server-on-centos-7/ |