woody4165 wrote:I'm getting this error on service restart
Code: Select all
check_beacon_presence.service failed to load: No such file or directory.
Thanks
Hi,
1/ Make sure that the both files are in UNIX format. (If DOS format, convert them. Check with nano :
sudo nano check_beacon_presence
Ctrl+o to save
Alt+d to alternate betwen DOS and Unix/Linux line-endings.
Press enter
Ctrl+x
2/ Dont' forget to modify check_beacon_presence.py to configure log to file :
Code: Select all
# choose between DEBUG (log every information) or CRITICAL (almost no log)
#logLevel=logging.DEBUG
logLevel=logging.CRITICAL
logOutFilename='/var/log/check_beacon_presence.log'
Then you have several command to test: start, stop, restart, status
sudo /etc/init.d/check_beacon_presence status
Does-it work ?