2019-03-29 14:46:17 +01:00
|
|
|
#!/bin/bash
|
|
|
|
# EN: Start daemons
|
|
|
|
# RU: Запуск демонов
|
2019-06-03 23:02:29 +02:00
|
|
|
cd /home/py-kms/py-kms
|
2019-03-29 14:46:17 +01:00
|
|
|
if [ "$SQLITE" == false ];
|
|
|
|
then
|
|
|
|
if [ "$EPID" == "" ];
|
|
|
|
then
|
2019-06-05 12:15:43 +02:00
|
|
|
/usr/bin/python3 pykms_Server.py ${IP} ${PORT} -l ${LCID} -c ${CLIENT_COUNT} -a ${ACTIVATION_INTERVAL} -r ${RENEWAL_INTERVAL} -w ${HWID} -V ${LOGLEVEL} -F ${LOGFILE}
|
2019-03-29 14:46:17 +01:00
|
|
|
else
|
2019-06-05 12:15:43 +02:00
|
|
|
/usr/bin/python3 pykms_Server.py ${IP} ${PORT} -e ${EPID} -l ${LCID} -c ${CLIENT_COUNT} -a ${ACTIVATION_INTERVAL} -r ${RENEWAL_INTERVAL} -s ${SQLITE} -w ${HWID} -V ${LOGLEVEL} -F ${LOGFILE}
|
2019-03-29 14:46:17 +01:00
|
|
|
fi
|
|
|
|
else
|
|
|
|
if [ "$EPID" == "" ];
|
|
|
|
then
|
2019-06-05 12:15:43 +02:00
|
|
|
/bin/bash -c "/usr/bin/python3 pykms_Server.py ${IP} ${PORT} -l ${LCID} -c ${CLIENT_COUNT} -a ${ACTIVATION_INTERVAL} -r ${RENEWAL_INTERVAL} -s -w ${HWID} -V ${LOGLEVEL} -F ${LOGFILE} &" && /usr/bin/python3 pykms_Client.py ${IP} ${PORT} -m Windows10 && /usr/bin/python3 /home/sqlite_web/sqlite_web.py -H ${IP} -x ${PWD}/clients.db --read-only
|
2019-03-29 14:46:17 +01:00
|
|
|
else
|
2019-06-05 12:15:43 +02:00
|
|
|
/bin/bash -c "/usr/bin/python3 pykms_Server.py ${IP} ${PORT} -e ${EPID} -l ${LCID} -c ${CLIENT_COUNT} -a ${ACTIVATION_INTERVAL} -r ${RENEWAL_INTERVAL} -s -w ${HWID} -V ${LOGLEVEL} -F ${LOGFILE} &" && /usr/bin/python3 pykms_Client.py ${IP} ${PORT} -m Windows10 && /usr/bin/python3 /home/sqlite_web/sqlite_web.py -H ${IP} -x ${PWD}/clients.db --read-only
|
2019-03-29 14:46:17 +01:00
|
|
|
fi
|
|
|
|
fi
|