eine Sache macht mir gerade zu schaffen.
Mein Programm liest sich eine config via ConfigParser. So lange ich das tool direkt von der Konsole aus starte läuft alles wunderbar. Nun soll das tool über die rc.local beim starten des Rechners gesartet werden. Da bricht er aber beim laden der rc.local direkt ab:
Aufruf im Programm:
Code: Alles auswählen
import ConfigParser
while True:
cfg = ConfigParser.ConfigParser()
cfg.read('.conf')....
Code: Alles auswählen
python /home/tools/get_02_00_01.py&
exit0
Code: Alles auswählen
$ Traceback (most recent call last):
File "/home/tools/get_02_00_01.py", line 126, in <module>
DEBUG = cfg.get('startConf','DEBUG')
File "/usr/lib/python2.7/ConfigParser.py", line 607, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'startConf'
^C