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

[CentOS] 將 vlmcsd 加成服務

[複製鏈接]
發表於 2018-9-13 08:48:09 | 顯示全部樓層 |閱讀模式
#vi /lib/systemd/system/vlmcsd.service
[mw_shl_code=shell,true][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[/mw_shl_code]
#systemctl daemon-reload
#systemctl start vlmcsd
#systemctl enable vlmcsd

Reference: https://www.codeonway.com/2017/0 ... server-on-centos-7/
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

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

GMT+8, 2024-12-22 10:20 , Processed in 0.019108 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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