#!/bin/execlineb -P
foreground { install -d -m 0755 -o s6log -g s6log /var/log/lvm2-monitor }
foreground {
	envfile /etc/s6/config/lvm2.conf
	importas -sCuD "n3 s2000000 T" LVM2_MONITOR_DIRECTIVES LVM2_MONITOR_DIRECTIVES
	pipeline { fdmove -c 2 1 vgchange --sysinit -a n } s6-setuidgid s6log exec -c s6-log -b -- ${LVM2_MONITOR_DIRECTIVES} /var/log/lvm2-monitor
}
foreground {
	envfile /etc/s6/config/lvm2.conf
	importas -sCuD "n3 s2000000 T" LVM2_MONITOR_DIRECTIVES LVM2_MONITOR_DIRECTIVES
	pipeline { fdmove -c 2 1 vgchange --monitor n } s6-setuidgid s6log exec -c s6-log -b -- ${LVM2_MONITOR_DIRECTIVES} /var/log/lvm2-monitor
}
