|
@@ -5,7 +5,7 @@ START=90
|
|
|
|
|
|
start(){
|
|
|
if [ ! -f "/tmp/vlmcsd.pid" ]; then
|
|
|
- /usr/bin/vlmcsd -i /etc/kmsserver.ini -p /tmp/vlmcsd.pid -l syslog -L 0.0.0.0:1688
|
|
|
+ /usr/bin/vlmcsd -i /etc/vlmcsd.ini -p /tmp/vlmcsd.pid -l syslog -L 0.0.0.0:1688
|
|
|
echo "KMS Server has started."
|
|
|
else
|
|
|
echo "KMS Server has already started."
|
|
@@ -16,7 +16,8 @@ stop(){
|
|
|
if [ ! -f "/tmp/vlmcsd.pid" ]; then
|
|
|
echo "KMS Server is not running."
|
|
|
else
|
|
|
- killall vlmcsd
|
|
|
+ pid=`cat /tmp/vlmcsd.pid`
|
|
|
+ kill $pid
|
|
|
rm -f /tmp/vlmcsd.pid
|
|
|
echo "KMS Server has stopped."
|
|
|
fi
|
|
@@ -24,7 +25,7 @@ stop(){
|
|
|
|
|
|
restart(){
|
|
|
stop
|
|
|
- sleep 3
|
|
|
+ sleep 1
|
|
|
start
|
|
|
echo "KMS Server has restarted."
|
|
|
}
|