paul- wrote: 
> Some processes may not like being backgrounded and then trying to
> daemonize.  You likely don't need to use the "-d".   Or you can just put
> what you want in a script, then put the script name in user commands.

Removing the "-d" daemonize option from the USER_COMMAND irexec
invocation makes no difference.  irexec still doesn't start from the
tweak page.

pCP still has a bug in the web server-to-user commands translation.  It
keeps inserting URL encoded HTML into pcp.cfg directly.  For example,
entering the following in the Tweaks->User Commands:
31932

results in /usr/local/etc/pcp/pcp.cfg content:


Code:
--------------------
    USER_COMMAND_1="%2Fhome%2Ftc%2Fboot-irexec.sh"
--------------------


instead of "/home/tc/boot-irexec.sh" .

I attempted your second suggestion and created /home/tc/boot-irexec.sh:


Code:
--------------------
    #!/bin/sh
  /usr/local/bin/irexec -d
--------------------


I could SSH in and manually execute /home/tc/boot-irexec.sh, and the
irexec process runs as expected.  So the script is valid.

I tried multiple tweaks->user command strings, including:
    
- boot-irexec.sh
- %2Fhome%2Ftc%2Fboot-irexec.sh (the value as written by the pCP
  Tweaks web page)
- /home/tc/boot-irexec.sh (manually edited pcp.cfg)
  
rebooting between each try.  None of them resulted in irexec running.

Seems pretty clear that there is a bug in the Tweaks->User Commands.

I restored my /home/tc/.profile tweak, and irexec starts at boot once
again.  So that works for me, at least.


+-------------------------------------------------------------------+
|Filename: pcp-user-command.PNG                                     |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=31932|
+-------------------------------------------------------------------+

------------------------------------------------------------------------
Braklet's Profile: http://forums.slimdevices.com/member.php?userid=47269
View this thread: http://forums.slimdevices.com/showthread.php?t=112524

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to