commit 03ace675c214050f89206ac85c548aff2e7a05f7
Author: Arkadiusz Miƛkiewicz <[email protected]>
Date:   Sun Jan 12 00:17:29 2014 +0100

    - rel 1

 tvheadend.init | 20 +-------------------
 tvheadend.spec |  3 +--
 2 files changed, 2 insertions(+), 21 deletions(-)
---
diff --git a/tvheadend.spec b/tvheadend.spec
index a913bae..50be758 100644
--- a/tvheadend.spec
+++ b/tvheadend.spec
@@ -1,12 +1,11 @@
 # TODO
 # - register uid
-# - initscript: two 'force-reload' (either it has reload or not, cleanup!)
 Summary:       TV streaming server
 Name:          tvheadend
 # keep stable version announced on web page
 %define vername 3.4patch1
 Version:       3.4.27
-Release:       0.1
+Release:       1
 License:       GPL v3
 Group:         Applications/Multimedia
 Source0:       https://github.com/tvheadend/tvheadend/archive/%{vername}.tar.gz
diff --git a/tvheadend.init b/tvheadend.init
index 68b924d..6942588 100755
--- a/tvheadend.init
+++ b/tvheadend.init
@@ -56,18 +56,6 @@ stop() {
        rm -f /var/lock/subsys/tvheadend
 }
 
-reload() {
-       if [ ! -f /var/lock/subsys/tvheadend ]; then
-               msg_not_running "tvheadend"
-               RETVAL=7
-               return
-       fi
-
-       msg_reloading "tvheadend"
-       killproc tvheadend -HUP
-       RETVAL=$?
-}
-
 condrestart() {
        if [ ! -f /var/lock/subsys/tvheadend ]; then
                msg_not_running "tvheadend"
@@ -95,12 +83,6 @@ case "$1" in
   try-restart)
        condrestart 0
        ;;
-# include force-reload here if program allows reloading without restart
-# otherwise remove reload action and support force-reload as restart if running
-  reload|force-reload)
-       reload
-       ;;
-# use this one if program doesn't support reloading without restart
   force-reload)
        condrestart 7
        ;;
@@ -109,7 +91,7 @@ case "$1" in
        RETVAL=$?
        ;;
   *)
-       msg_usage "$0 
{start|stop|restart|try-restart|reload|force-reload|status}"
+       msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"
        exit 3
 esac
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tvheadend.git/commitdiff/03ace675c214050f89206ac85c548aff2e7a05f7

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to