Hi Oleg,
I tried both hand editing the launcher.conf.xml file and your method
below without success. I did verify that /etc/rc3.d contains
s99launcher.php which is symlinked to init.d/launcher.php
contents of /etc/launcher.conf.xml:
<launcher_cmd>
<launch_example program="[patch]program_name" log="log_file_name"
background="true|false">
'log' and 'background' is optional attributes; program can be with a
full path
</launch_example>
<launch program="/usr/local/sbin/camogm /var/state/camogm_cmd" log=""
background="true"/>
</launcher_cmd>
regards,
-scott
Oleg Dzhimiev wrote:
Dear Scott,
Could you please send your /etc/launcher.conf.xml?
The launcher.php is executed after the boot - you don't need to enable
anything (there should be a link in /etc/rc3.d - "S99launcher.php")
and it runs the programs from the list in launcher.conf.xml. I've
just tested this - it works fine.
I added the record using launcher.php:
http://192.168.0.144/launcher.php?cmd=add&background=true&opt=wait&program=/usr/html/script.php
<http://192.168.0.144/launcher.php?cmd=add&background=true&opt=wait&program=/usr/html/script.php>
"launcher,conf.xml" example:
<launcher_cmd>
<launch_example program="[patch]program_name" log="log_file_name"
background="true|false">
'log' and 'background' is optional attributes; program can be with a
full path
</launch_example>
<launch program="/usr/html/script.php" log="" background="true"/>
</launcher_cmd>
Best regards,
Oleg
Elphel, Inc.
On 12 February 2010 14:42, Scott Janz <[email protected]
<mailto:[email protected]>> wrote:
Ok, I added the appropriate command to /etc/launcher.conf.xml and
it works properly from the command line:
php /etc/init.d/launcher.php
starts camogm in the background, writes to /var/log/auto.log etc.
But it will not automatically start at boot time. Is there
something I need to do to enable launcher.php to run at boot? I
have already checked to make sure it is executable.
thanks,
-scott
Sebastian Pichelhofer wrote:
It was initially added in 2008 so you should already have it
in your camera.
Regards Sebastian
Janz, Scott J. (GSFC-6133) wrote:
Thanks Sebastian, is the launcher installed in 8.0.4.3 or
do I need to upgrade to latest distro?
-scott
On Feb 5, 2010, at 5:25 PM, Sebastian Pichelhofer wrote:
I am working on a GUI in the system preferences for
the launcher.php (/etc/init.d/launcher.php) script
that reads an xml file and then starts the appropriate
commands.
This launcher.php is already installed but not doing
anything at the moment (empty xml with just a demo entry).
I would suggest to look at /etc/launcher.conf.xml as a
starting point.
Regards Sebastian
Janz, Scott J. (GSFC-6133) wrote:
Hopefully a simple question, what is the
recommended method of autostarting camogm on
camera boot?
thanks!
-scott
_______________________________________________
Support-list mailing list
[email protected]
<mailto:[email protected]>
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com
_______________________________________________
Support-list mailing list
[email protected]
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com