client/rhel/rhnsd/rhnsd.init | 19 +++++++++++++++++-- client/rhel/rhnsd/rhnsd.spec | 10 +++++++--- 2 files changed, 24 insertions(+), 5 deletions(-)
New commits: commit d295180e5fbc3d49fd4891d9f2e36a9decaf0187 Author: Miroslav Suchý msuchy@redhat.com Date: Tue Sep 1 21:02:30 2009 +0200
implement try-restart as alias for condrestart
diff --git a/client/rhel/rhnsd/rhnsd.init b/client/rhel/rhnsd/rhnsd.init index 6b9eb2f..5c9cdbc 100644 --- a/client/rhel/rhnsd/rhnsd.init +++ b/client/rhel/rhnsd/rhnsd.init @@ -81,7 +81,7 @@ case "$1" in stop start ;; - condrestart) + condrestart|try-restart) if [ -f /var/lock/subsys/rhnsd ]; then stop start @@ -92,7 +92,7 @@ case "$1" in RETVAL=$? ;; *) - echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}" + echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload}" exit 1 esac exit $RETVAL
commit 9bda88e0f1fb815337ce24332b549ecbf49c9724 Author: Miroslav Suchý msuchy@redhat.com Date: Tue Sep 1 20:54:45 2009 +0200
add LSB header
diff --git a/client/rhel/rhnsd/rhnsd.init b/client/rhel/rhnsd/rhnsd.init index b98e004..6b9eb2f 100644 --- a/client/rhel/rhnsd/rhnsd.init +++ b/client/rhel/rhnsd/rhnsd.init @@ -13,6 +13,21 @@ # pidfile: /var/run/rhnsd.pid #
+### BEGIN INIT INFO +# Provides: rhnsd +# Required-Start: $local_fs $network $remote_fs $named $time +# Required-Stop: $local_fs $network $remote_fs $named +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Starts the Red Hat Network Daemon +# Description: This is a daemon which handles the task of connecting +# periodically to the Red Hat Network servers to +# check for updates, notifications and perform system +# monitoring tasks according to the service level that +# this server is subscribed for. +### END INIT INFO + + # interval in minutes to connect to Red Hat Network. The minimum allowed # value is currently 1 hour; by default rhnsd will connect every other hour. # This should be more than suitable for the vast majority of systems. You
commit d15a7a17c278b2b467cae7407c71785b89333ed3 Author: Miroslav Suchý msuchy@redhat.com Date: Tue Sep 1 20:46:40 2009 +0200
change url, source0 and requires according to packaging guidelines
diff --git a/client/rhel/rhnsd/rhnsd.spec b/client/rhel/rhnsd/rhnsd.spec index 997dced..3208ede 100644 --- a/client/rhel/rhnsd/rhnsd.spec +++ b/client/rhel/rhnsd/rhnsd.spec @@ -1,8 +1,8 @@ Summary: Red Hat Network query daemon License: GPLv2 Group: System Environment/Base -Source0: %{name}-%{version}.tar.gz -Url: http://rhn.redhat.com +Source0: https://fedorahosted.org/releases/s/p/spacewalk/%%7Bname%7D-%%7Bversion%7D.t... +URL: https://fedorahosted.org/spacewalk Name: rhnsd Version: 4.5.11 Release: 1%{?dist} @@ -10,8 +10,12 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gettext
-Requires: chkconfig Requires: rhn-check >= 0.0.8 +Requires(post): chkconfig +Requires(preun): chkconfig +# This is for /sbin/service +Requires(preun): initscripts +Requires(postun): initscripts
%description The Red Hat Update Agent that automatically queries the Red Hat
spacewalk-commits@lists.fedorahosted.org