- fix init script for case when no action was specified
This commit is contained in:
parent
9cd7b15c03
commit
b6eb32559f
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# smartmontools init file for smartd
|
# smartmontools init file for smartd
|
||||||
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
|
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
|
||||||
# $Id: smartd.initd,v 1.8 2009/10/09 09:02:24 mhlavink Exp $
|
# $Id: smartd.initd,v 1.9 2009/10/09 18:09:53 mhlavink Exp $
|
||||||
|
|
||||||
# For RedHat and cousins:
|
# For RedHat and cousins:
|
||||||
# chkconfig: - 99 01
|
# chkconfig: - 99 01
|
||||||
@ -123,7 +123,7 @@ case "$1" in
|
|||||||
*)
|
*)
|
||||||
echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
|
echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
|
||||||
RETVAL=2
|
RETVAL=2
|
||||||
[ $1 = 'usage' ] && RETVAL=0
|
[ '$1' = 'usage' ] && RETVAL=0
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exit $RETVAL
|
exit $RETVAL
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Summary: Tools for monitoring SMART capable hard disks
|
Summary: Tools for monitoring SMART capable hard disks
|
||||||
Name: smartmontools
|
Name: smartmontools
|
||||||
Version: 5.38
|
Version: 5.38
|
||||||
Release: 19%{?dist}
|
Release: 20%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
@ -79,6 +79,9 @@ fi
|
|||||||
%config(noreplace) %{_sysconfdir}/sysconfig/smartmontools
|
%config(noreplace) %{_sysconfdir}/sysconfig/smartmontools
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 09 2009 Michal Hlavinka <mhlavink@redhat.com> - 1:5.38-20
|
||||||
|
- fix init script for case when no action was specified
|
||||||
|
|
||||||
* Fri Oct 09 2009 Michal Hlavinka <mhlavink@redhat.com> - 1:5.38-19
|
* Fri Oct 09 2009 Michal Hlavinka <mhlavink@redhat.com> - 1:5.38-19
|
||||||
- make init script lsb compliant (#528016)
|
- make init script lsb compliant (#528016)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user