[Pkg-zfsonlinux-devel] Bug#826994: Bug#826994: Bug#826994: Missing init-script(s)?

Craig Sanders cas at taz.net.au
Mon Jul 4 15:21:12 UTC 2016


On Mon, Jul 04, 2016 at 12:37:30PM +1000, Tim Connors wrote:
> zfsutils_0.6.5.7-8-jessie_amd64.deb from ZoL contained amongst others:
> 
> -rwxr-xr-x root/root      2871 2016-05-20 08:59 ./etc/init.d/zfs-zed
> -rwxr-xr-x root/root      5623 2016-05-20 08:59 ./etc/init.d/zfs-mount
> -rwxr-xr-x root/root      2262 2016-05-20 08:59 ./etc/init.d/zfs-share
> -rwxr-xr-x root/root      5100 2016-05-20 08:59 ./etc/init.d/zfs-import
> 
> This was sufficient to ensure my pools were all imported and mounted
> on the systems I've banished systemd from for reliability reasons.
> Alas, all that zfsutils-linux in debian contains in the whole of /etc/
> are:
> [ list of files that don't include the init scripts ]

Unfortunately, debian's ZoL only fully supports systemd at the moment.

Until this is resolved satisfactorily, you can copy the ZoL init scripts
and run:

update-rc.d zfs-import defaults
update-rc.d zfs-mount defaults
update-rc.d zfs-zed defaults
update-rc.d zfs-share defaults

It Worked For Me<tm>


I've since seen notes saying:

    INSTALLING INIT SCRIPT LINKS

      To setup the init script links in /etc/rc?.d manually on a Debian
      GNU/Linux (or derived) system, run the following commands (the
      order is important!):

        update-rc.d zfs-import start 07 S .       stop 07 0 1 6 .
        update-rc.d zfs-mount  start 02 2 3 4 5 . stop 06 0 1 6 .
        update-rc.d zfs-zed    start 07 2 3 4 5 . stop 08 0 1 6 .
        update-rc.d zfs-share  start 27 2 3 4 5 . stop 05 0 1 6 .


When I asked Aron Xu about this back in Feb, he said:

 > The only stopper for adding LSB (sysvinit) support is manpower, I
 > dropped the support to make things easier for doing an initial upload
 > for the archive. systemd support is tested and used in production by
 > myself on Jessie systems without problem, though. If there is people
 > willing to give a hand on maintaining LSB support I'm happy to carry
 > it.

I guess that means "patches welcome".

craig

-- 
craig sanders <cas at taz.net.au>



More information about the Pkg-zfsonlinux-devel mailing list