What if you removed everything in the script but the shutdown
command.. does it work?
Mohamed.
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/YQwIsn2GjGgJ.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
If the shell is configured that way: Yes. Try to write the output of »set -o«
somewhere and look if »errexit« is set. If that is the case bash will
leave the script as soon as a command returns a non-true value.
>
> BTW, I do have the full path of the binaries in my shell script now.
>
If in doubt, prefer puppet agent --one-time --no-daemonize (typos
notwithstanding).
On 11/14/2011 01:01 PM, John Kennedy wrote:
> puppet agent --test
> ANSW=$?
Otherwise, I'm stumped, this shouldn't happen. You could try and execute
puppet in a subshell and see if the rest of the script is run then.
( puppet agent --test )
Cheers,
Felix