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"
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
;;
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
# 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