theonionbox icon indicating copy to clipboard operation
theonionbox copied to clipboard

Command line parameters needed in service file

Open fsantiago07044 opened this issue 7 years ago • 1 comments

On fedora 27, the systemd service refused to recognize the presence of a config file without the command line parameter on the execstart line. Fyi.

fsantiago07044 avatar Feb 18 '18 03:02 fsantiago07044

Where do you expect your box to find the config file? On my test system (which yet is not fedora), the presence of a config file is checked as stated in the ReadMe:

Feb 18 15:07:39 [...]: No configuration file found at '/home/pi/theonionbox/lib/python2.7/site-packages/theonionbox/theonionbox.cfg'
Feb 18 15:07:39 [...]: No configuration file found at '/home/pi/theonionbox/lib/python2.7/site-packages/theonionbox/config/theonionbox.cfg'

Be aware, that when starting the box as a daemon, you're no longer within the Virtual Environment; therefore the first location will not ( = cannot) be checked - as explained. If you stored your config file there - then you're right: You have to provide the path as command line parameter.

ralphwetzel avatar Feb 18 '18 14:02 ralphwetzel