News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Template with command line exec not being invoked ??

Started by derailed, April 09, 2009, 08:17:32 PM

Previous topic - Next topic

derailed

Hi,

   I have a a device setup with a generic device template - I have specified a command line exec for it called fred.
   I have put fred in /usr/pluto/bin. The permission is set to x and owned by root. fred is currently setup as a shell
   script that takes a host and device id as arguments.

   I was expecting my fred exec to be launched when I do a router reload. Is this correct ?
   In essence, I am not seeing fred being called at all and I am not sure where to look to figure out why this exec
   is not being invoked.

   I am running 810 alpha 2.

   Any suggestions ?

Thanks !!

jondecker76

Have you done the most recent updates from the weekly builds?

In the last couple of builds (last couple of weeks) - launch_manager is now running which should start your exec if it is specifically named in the database (otherwise it looks for a binary of device_name with spaces replaced with underscores) - though to be honest I haven't thoroughly tested the custom binary name execution part just yet (though I fully expect it to work)

First lets make sure you have the latest weekly build updates by running

sudo apt-get update
sudo apt-get dist-upgrade


If it still fails to launch after you are sure you are at the latest build, please post back here as I have interest in making sure it works correctly.

derailed

Hi Jon,

   Thanks for the reply. I'll update my installation and restart and give it another shot...
   Do I need to do a pluto db update as well ?

   I'll keep you posted.


derailed

Hi Jon,

   Worked like a champ !! Thanks for the info and the contributions !!