彩色筆小沛的知識庫

 找回密碼
 註冊
搜索
查看: 1665|回復: 0

[CentOS] 將 vlmcsd 加成服務

[複製鏈接]
發表於 2018-9-13 08:48:09 | 顯示全部樓層 |閱讀模式
#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/
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

Archiver|手機版|彩色筆小沛的知識庫

GMT+8, 2022-10-8 01:54 , Processed in 0.035020 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回復 返回頂部 返回列表