Some more info :
I do not manged to make it work as I want using cron jobs.
So I have make some try with systemd.
Here my systemd service file calling the bash script from previous post :
[Unit]
Description = Fix ZFS mount points
After = smbd.service nfs-kernel-server.service zfs-import-cache.service zfs-share.service
Requires = smbd.service nfs-kernel-server.service zfs-import-cache.service zfs-share.service
Before = zfs-mount.service
[Service]
#TimeoutStartSec=0
#Type = idle
Type = oneshot
#StandardOutput=tty
#TTYPath=/dev/pts/1
ExecStart = /root/OMV_ZFS_Fix.sh
#RemainAfterExit = True
[Install]
WantedBy = multi-user.target
Alles anzeigen
You have to copy the service file in /etc/systemd/system/ZFS_Fix.service
Then, to enable the script :
systemctl daemon-reload
systemctl enable ZFS_Fix.service
reboot
It seams to work for me !
Best regards,
Samuel