Closed rubo77 closed 6 years ago
Can't reproduce
sudo /opt/mesh-announce/respondd.py -d /non-existent-directory -i br-ffki -i ffki-mvpn -b bat-ffki -m 10.116.160.1
Traceback (most recent call last):
File "/opt/mesh-announce/respondd.py", line 70, in <module>
get_handler(get_providers(args.directory), {'batadv_dev': args.batadv_iface, 'mesh_ipv4': args.mesh_ipv4})
File "/opt/mesh-announce/providers/__init__.py", line 150, in get_providers
raise FileNotFoundError("The path '{}' is not a valid directory".format(directory))
FileNotFoundError: The path '/non-existent-directory' is not a valid directory
I used
-d /opt/mesh-announce/provider
Without s
Maybe there was an error in the log, I only checked if the sevicre was running and it was active although the path was wrong.
It should refuse to start
You can't "refuse" to start. The service simply crashes as soon as it hits that error
strange, I think it was running before with thy typo in the path, but I cannot reproduce it now either
If you specify a directory with
-d
that does not exist, the service runs luckily anyway, although it doesn't find any provider!