fix up these perms for now

This commit is contained in:
Justin Hammond 2015-10-24 01:39:12 +08:00
parent 66ca0b4ac9
commit 194d640084
3 changed files with 8 additions and 7 deletions

View file

@ -5,8 +5,8 @@ After=network.target
[Service]
Type=simple
User=nobody
Group=nobody
User=root
Group=root
ExecStart=/usr/bin/LMBd --config /etc/LMBd.conf
# Give the script some time to startup

View file

@ -6,8 +6,8 @@ Requires=lmbd.service
[Service]
Type=simple
User=nobody
Group=nobody
User=root
Group=root
ExecStart=/usr/bin/python /usr/bin/zabbix_stats.py -c /etc/zabbix_stats.cfg
# Give the script some time to startup

View file

@ -272,9 +272,10 @@ bool Driver_DX::StartUp() {
std::stringstream ss;
time_t t = time(NULL);
tm* timePtr = localtime(&t);
uint8_t setTime[] = { 0x02, 0x34, InsertString(timePtr->tm_year -100), InsertString(timePtr->tm_mon +1), InsertString(timePtr->tm_mday), InsertString(timePtr->tm_hour), InsertString(timePtr->tm_min), InsertString(timePtr->tm_sec), InsertString(timePtr->tm_wday), 0x00 };
doChkSum(&setTime[0], 9);
int sent = (int)this->lmbctx->sp->write(setTime, 10);
/* uint8_t setTime[10] = { 0x02, 0x34, InsertString(timePtr->tm_year -100), InsertString(timePtr->tm_mon +1), InsertString(timePtr->tm_mday), InsertString(timePtr->tm_hour), InsertString(timePtr->tm_min), InsertString(timePtr->tm_sec), InsertString(timePtr->tm_wday), 0x00 };
# doChkSum(&setTime[0], 9);
# int sent = (int)this->lmbctx->sp->write(setTime, 10);
LMB_LOG_DEBUG() << "Set Clock: " << std::dec << sent;
*/
return true;
}