mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Fixing error when starting agent as Daemon
This commit is contained in:
parent
08992be99d
commit
d1b0dac723
@ -39,11 +39,16 @@ sudo apt-get update
|
|||||||
sudo apt-get install python-pip
|
sudo apt-get install python-pip
|
||||||
sudo pip install paho-mqtt
|
sudo pip install paho-mqtt
|
||||||
|
|
||||||
#installing ada
|
# installing ada
|
||||||
|
echo ===Installing ADA libraries
|
||||||
sudo apt-get install build-essential python-dev
|
sudo apt-get install build-essential python-dev
|
||||||
unzip Adafruit_Python_DHT
|
unzip Adafruit_Python_DHT
|
||||||
sudo python Adafruit_Python_DHT/setup.py install
|
cd Adafruit_Python_DHT
|
||||||
|
sudo python setup.py install
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
# moving files to start the agent as Daemon
|
||||||
|
echo ===Moving files to start agent as Daemon
|
||||||
sudo cp $currentDir/deviceConfig.properties $currentDir/src
|
sudo cp $currentDir/deviceConfig.properties $currentDir/src
|
||||||
sudo cp -r $currentDir/src $destination
|
sudo cp -r $currentDir/src $destination
|
||||||
sudo chmod 755 $destination/src/RaspberryAgent.py
|
sudo chmod 755 $destination/src/RaspberryAgent.py
|
||||||
@ -51,4 +56,4 @@ sudo update-rc.d -f RaspberryService.sh remove
|
|||||||
sudo cp $currentDir/RaspberryService.sh /etc/init.d
|
sudo cp $currentDir/RaspberryService.sh /etc/init.d
|
||||||
sudo chmod 755 /etc/init.d/RaspberryService.sh
|
sudo chmod 755 /etc/init.d/RaspberryService.sh
|
||||||
sudo update-rc.d RaspberryService.sh defaults
|
sudo update-rc.d RaspberryService.sh defaults
|
||||||
sudo service RaspberryService.sh start
|
sudo service RaspberryService.sh start
|
||||||
Loading…
Reference in New Issue
Block a user