You should try to run it in gdb, and do a backtrace to see where it hangs. See

http://www.cfengine.org/pages/troubleshooting



M LZ wrote:
> 
> Hi, trying to use cf3 on sparc/solaris8, compiled version 3.0.4. When
> testing simple command execution cf-agent hangs. Can anyone help with this?
> 
> Thanks,
> mlz
> 
> 
> 
>> /usr/local/sbin/cf-agent -v -K -f ./test.c
> 
> .....
> cf3 Verifying SQL table promises is only available with Cfengine Nova or
> above
> cf3  -> Promiser string contains a valid executable (/bin/echo) - ok
> cf3
> cf3     .........................................................
> cf3     Promise handle:
> cf3     Promise made by: /bin/echo testagentexit
> cf3     .........................................................
> cf3
> cf3  -> Executing '/bin/echo testagentexit'
> ...(timeout=-678,owner=-1,group=-1)
> cf3  -> (Setting umask to 77)
> 
> 
>> cat test.cf <http://test.cf>
> 
> body common control
> 
> {
> bundlesequence  => {
>                    "main"
>                    };   
> 
> }
> 
> 
> bundle common g
> {
> vars:
> 
>   SuSE::
> 
>    "crontab" string => "/var/spool/cron/tabs/root";
> 
>  !SuSE::
> 
>    "crontab" string => "/var/spool/cron/crontabs/root";
> }
> 
> #######################################################
> # General site issues can be in bundles like this one
> #######################################################
> 
> bundle agent main
> 
> {
> 
> commands:
> 
>    "/bin/echo testagentexit"
>         contain => standard;
> 
> }
> 
> 
> body contain standard
> 
> {
> useshell => "true";
> }
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine

-- 
Mark Burgess

-------------------------------------------------
Professor of Network and System Administration
Oslo University College, Norway

Personal Web: http://www.iu.hio.no/~mark
Office Telf : +47 22453272
-------------------------------------------------
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to