0

A simple and fast question about pcs. With this command

pcs resource create NameService named op monitor interval=30s

I create a resource named,wich is working,but if i want to run named -u named -t /var/chroot instead of default named,how to create a resource with those options?

elbarna
  • 12,050
  • 22
  • 92
  • 170

1 Answers1

1

You can give the named resource agent a user via 'named_user', and you can pass other options via 'named_options':

pcs resource create NameService named named_user=named \ named_options="-t /var/chroot" op monitor interval=30s

Or you could try using the "anything" resource agent to feed options to named. It would look something like this:

pcs resource create NameService ocf:heartbeat:anything \ binfile="/usr/sbin/named" cmdline_options="-u named -t /var/chroot" \ pidfile="/var/run/named.pid" op monitor interval=30s

EDIT: For more resource agent options:

# pcs resource describe ocf:heartbeat:named

Matt Kereczman
  • 669
  • 3
  • 7