jbrusey / cogent-house

Cogent House is a system for sensing temperature, humidity, CO2, Air Quality, VOC, hot water consumption, and electricity consumption within the home. It has been developed by the [http://cogentcomputing.org Cogent Computing Applied Research Centre] at Coventry University. Cogent House is developed using TinyOS and Python.
4 stars 2 forks source link

ch-base init script doesn't background properly #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. issue "service ch-base start"

What is the expected output? What do you see instead?

expect it to go into the background

it doesn't though. 

perhaps we can use the daemon library? 

Please use labels and text to provide additional information.

Original issue reported on code.google.com by james.br...@gmail.com on 16 Mar 2014 at 3:02

GoogleCodeExporter commented 9 years ago
Its a path issue,

ch-base (and ch-sf expect tinyos to be in on /opt/tinyos-2.1.2/  rather than 
tinyos-release or tinyos-default.  

I have added some checks to the scripts to ensure the correct path is used at 
startup.

Original comment by DjGoldsm...@googlemail.com on 17 Mar 2014 at 1:13

GoogleCodeExporter commented 9 years ago

Original comment by DjGoldsm...@googlemail.com on 17 Mar 2014 at 1:13

GoogleCodeExporter commented 9 years ago
have made some suggestions as a code review on the script

Original comment by james.br...@gmail.com on 17 Mar 2014 at 3:25

GoogleCodeExporter commented 9 years ago
have tested and it now is picking up my tinyos library but still not going into 
background

Original comment by james.br...@gmail.com on 17 Mar 2014 at 5:57

GoogleCodeExporter commented 9 years ago
Path issues are now fixed in latest version of the script.

Original comment by DjGoldsm...@googlemail.com on 28 Mar 2014 at 9:48