Committed!

Thanks!
-Tony

On 03/23/2015 11:23 PM, Gris Ge wrote:
>  * The lsmd daemon should be restarted after this new plugin installed.
> 
> Signed-off-by: Gris Ge <f...@redhat.com>
> ---
>  packaging/libstoragemgmt.spec.in | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/packaging/libstoragemgmt.spec.in 
> b/packaging/libstoragemgmt.spec.in
> index 8b84105..1ca0eea 100644
> --- a/packaging/libstoragemgmt.spec.in
> +++ b/packaging/libstoragemgmt.spec.in
> @@ -435,6 +435,13 @@ if [ $1 -eq 0 ]; then
>  fi
>  
>  %if 0%{?with_megaraid}
> +# Need to restart lsmd if plugin is new installed or removed.
> +%post -n %{libstoragemgmt}-megaraid-plugin
> +if [ $1 -eq 1 ]; then
> +    # New install.
> +    /usr/bin/systemctl try-restart libstoragemgmt.service \
> +        >/dev/null 2>&1 || :
> +fi
>  %postun -n %{libstoragemgmt}-megaraid-plugin
>  if [ $1 -eq 0 ]; then
>      # Remove
> 


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Libstoragemgmt-devel mailing list
Libstoragemgmt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libstoragemgmt-devel

Reply via email to