X-Git-Url: http://git.datanom.net/omvzfs.git/blobdiff_plain/cf4e471d86e8b05678e56f58a44212a43a6f9c82..c08a9e590d1ca6fd5d3539f1a50832dc3a1a60ef:/src/NotifyListener.php?ds=sidebyside diff --git a/src/NotifyListener.php b/src/NotifyListener.php index 5f55bd0..42c4fce 100644 --- a/src/NotifyListener.php +++ b/src/NotifyListener.php @@ -42,6 +42,7 @@ class OMVModuleZFS extends OMVModuleAbstract OMV_NOTIFY_MODIFY, "org.openmediavault.services.nfs.shares.share", array($this, "onUpdateNFSShare")); + $this->debug(sprintf("bindListeners %s", var_export($dispatcher, true))); } /** @@ -88,25 +89,6 @@ class OMVModuleZFS extends OMVModuleAbstract $this->debug(sprintf("onUpdateNFSShare args=%s", var_export($args, true))); } - /** - * Helper function to execute a command and throw an exception on error - * (requires stderr redirected to stdout for proper exception message). - * - * @param string $cmd Command to execute - * @param array &$out If provided will contain output in an array - * @param int &$res If provided will contain Exit status of the command - * @return string Last line of output when executing the command - * @throws OMVModuleZFSException - * @access public - */ - private function exec($cmd, &$out = null, &$res = null) { - $tmp = OMVUtil::exec($cmd, $out, $res); - if ($res) { - throw new OMVModuleZFSException(implode("\n", $out)); - } - return $tmp; - } - private function updatePools() { }