Oops: On Jul 22, 7:51 am, jcbollinger <john.bollin...@stjude.org> wrote: > On Jul 21, 11:28 am, Panaman <pana...@gmail.com> wrote: > > > > > I basically have a custom service i am running.... > > I want puppet to run a command if the process doesn't show up in ps - > > aux > > > What is happening is it runs the command no matter what. > > here is my exec > > > exec { "$rule-$interface-svscan": > > command => "/usr/sbin/daemon -f /bin/sh -c \"/usr/ > > local/bin/svscan /data/service\"", > > unless => "/bin/ps -aux |/usr/bin/grep '/data/ > > service'", > > > }
I meant to say: start by checking your command paths. In particular, grep is in /bin on my Cent 5 boxes, and not in /usr/bin. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.