</listitem>
</varlistentry>
- <varlistentry>
- <term>--notification-script=<parameter>FILENAME</parameter></term>
- <listitem>
- <para>
- FILENAME specifying a script to be invoked by ctdbd when
- certain state changes occur.
- </para>
- <para>
- The default is
- <filename>/usr/local/etc/ctdb/notify.sh</filename>.
- </para>
- <para>
- Please see the <citetitle>NOTIFICATIONS</citetitle>
- section in <citerefentry><refentrytitle>ctdb</refentrytitle>
- <manvolnum>7</manvolnum></citerefentry> for more
- information.
- </para>
- </listitem>
- </varlistentry>
-
<varlistentry>
<term>--reclock=<parameter>LOCK</parameter></term>
<listitem>
const char *debuglevel;
const char *transport;
const char *myaddress;
- const char *notification_script;
const char *logging;
const char *recovery_lock;
const char *db_dir;
{ "debug", 'd', POPT_ARG_STRING, &options.debuglevel, 0, "debug level", NULL },
{ "interactive", 'i', POPT_ARG_NONE, &interactive, 0, "don't fork", NULL },
{ "logging", 0, POPT_ARG_STRING, &options.logging, 0, "logging method to be used", NULL },
- { "notification-script", 0, POPT_ARG_STRING, &options.notification_script, 0, "notification script", "filename" },
{ "listen", 0, POPT_ARG_STRING, &options.myaddress, 0, "address to listen on", "address" },
{ "transport", 0, POPT_ARG_STRING, &options.transport, 0, "protocol transport", NULL },
{ "dbdir", 0, POPT_ARG_STRING, &options.db_dir, 0, "directory for the tdb files", NULL },
exit(1);
}
- if (options.notification_script != NULL) {
- ctdb->notification_script = talloc_strdup(
- ctdb, options.notification_script);
- } else {
- ctdb->notification_script = talloc_asprintf(ctdb,
- "%s/notify.sh",
- ctdb_base);
- }
+ ctdb->notification_script = talloc_asprintf(ctdb,
+ "%s/notify.sh",
+ ctdb_base);
if (ctdb->notification_script == NULL) {
D_ERR("Unable to set notification script\n");
exit(1);