lvmlockd.initd-2.02.166-r1 393 B

123456789101112131415161718
  1. #!/sbin/openrc-run
  2. # Copyright 1999-2017 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. pidfile="/run/lvmlockd.pid"
  5. command="/sbin/lvmlockd"
  6. command_args="${LVMLOCKD_OPTS:--p ${pidfile}} ${LVMLOCKD_TYPE:--g sanlock}"
  7. start_stop_daemon_args="--pidfile ${pidfile}"
  8. depend() {
  9. before sanlock
  10. }
  11. start_pre()
  12. {
  13. checkpath --directory /run/lvm || return 1
  14. }