I'm trying to configure my RPi with Raspbian Jessie to use
autofs to mount at boot a NFS share from my QNAP NAS.
The manual mount with
mount -v -t nfs server://share /mnt/share
works and also the
autofs service works if I manually start it with
sudo service autofs start
after starting also
nfs-common services first.
Now I want that all the 3 services involved (
autofs) start automatically at boot.
Since Raspbian Jessie uses
systemd, what should I do to add to the boot the
nfs-common services, that should start before
Should I use
init.d and so
sudo update-rc.d rpcbind enable
sudo update-rc.d nfs-common enable
or do I have to create a
systemd unit file?