corosync-notifyd.conf.in 936 B

12345678910111213141516171819202122232425262728293031323334
  1. # corosync-notifyd - Corosync Dbus and snmp notifier
  2. #
  3. # Starts corosync-notifyd
  4. expect fork
  5. respawn
  6. env prog=corosync-notifyd
  7. env initconf=@INITCONFIGDIR@/corosync-notifyd
  8. env rpm_lockfile=@LOCALSTATEDIR@/lock/subsys/corosync-notifyd
  9. env deb_lockfile=@LOCALSTATEDIR@/lock/corosync-notifyd
  10. script
  11. [ -f "$initconf" ] && . $initconf
  12. exec $prog $OPTIONS
  13. end script
  14. pre-start script
  15. mkdir -p @LOCALSTATEDIR@/run
  16. end script
  17. post-start script
  18. [ -f "$initconf" ] && . $initconf
  19. [ -z "$LOCK_FILE" -a -d @SYSCONFDIR@/sysconfig ] && LOCK_FILE="$rpm_lockfile"
  20. [ -z "$LOCK_FILE" -a -d @SYSCONFDIR@/default ] && LOCK_FILE="$deb_lockfile"
  21. touch $LOCK_FILE
  22. end script
  23. post-stop script
  24. [ -f "$initconf" ] && . $initconf
  25. [ -z "$LOCK_FILE" -a -d @SYSCONFDIR@/sysconfig ] && LOCK_FILE="$rpm_lockfile"
  26. [ -z "$LOCK_FILE" -a -d @SYSCONFDIR@/default ] && LOCK_FILE="$deb_lockfile"
  27. rm -f $LOCK_FILE
  28. end script