This patch adds /etc/hotplug.d/block/60-services that will look for "service" entries in /etc/config/fstab against a given mount and start them once the mount has been completed by the hotplug system. 

This is to solve the problem of usb devices being mounted after most of the rc system has completed, therefore any services that are intended to write to a mounted filesystem either fail or end up writing to the mount point prior to the mount.

An example config:

config 'mount'
option 'enabled' '1'
option 'device' '/dev/sda1'
option 'target' '/site'
option 'fstype' 'ext4'
option 'options' 'rw,noatime'
list 'service' 'syslog-ng'
list 'service' 'collectd'


Signed-off-by: Lee Essen <lee.es...@nowonline.co.uk>

Attachment: block_mount_svcs.patch
Description: Binary data

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to