Summary: | sys-fs/zfs-0.7.9: init script "zfs-import" has weird output for "status" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | David Klaftenegger <davidweb> |
Component: | Current packages | Assignee: | Sam James <sam> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | gyakovlev, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
David Klaftenegger
2018-11-28 02:50:54 UTC
generally you are right, expected output is just a status of the service. zfs ebuild uses upstream provided zfs initscript (which I personally don't like) and it redefines status() function to return status of the zpools. I'm not quite sure it's wise to check it that way, but if service if started there will be a symlink in /run/openrc/started ls -la /run/openrc/started/zfs-import lrwxrwxrwx 1 root root 22 Jan 8 22:17 /run/openrc/started/zfs-import -> /etc/init.d/zfs-import but it's openrc-only and probably not portable. see https://github.com/ansible/ansible/issues/50822 for the corresponding bug at ansible. |