Thanks for your feedback.
"how do you start tvheadend in the init script"
After the RPM-Package installation I must start the service manually by typing the command
# service tvheedend start
as root . I have take the init script from a clearos package, here it is
$ cat /etc/rc.d/init.d/tvheadend
#!/bin/bash
#
# tvheadend startup script
#
# chkconfig: 2345 99 01
# description: Tvheadend is a TV streaming server for Linux
# processname: tvheadend
# pidfile: /var/run/tvheadend.pid
# Source function library.
. /etc/init.d/functions
prog="tvheadend"
start() {
gprintf "Starting %s: " "$prog"
daemon tvheadend -u tvheadend -f -C
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/tvheadend
return $RETVAL
}
stop() {
gprintf "Stopping %s: " "$prog"
killproc tvheadend
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/tvheadend
return $RETVAL
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
status)
status tvheadend
;;
condrestart)
[ -f /var/lock/subsys/tvheadend ] && $0 restart || :
;;
*)
gprintf "Usage: %s {start|stop|status|restart|condrestart}\n" "$0"
exit 1
esac
"What options do you start with? using what user?"
If I start tvheadend with my user over the webintrerface "http:localhost:9981" there comes a login dialog but I have no login data (Username/password) so I start tvheadend with the option -C. By the way the permissions from the .hts directory and all subdirectories are 700? Are this permissions correct?
$ ls -lF ~/.hts/tvheadend/
total 4
drwx------ 2 mado mado 4096 2011-10-04 07:55 accesscontrol/
[mado@localhost ~]$ ls -l ~/.hts/
total 4
drwx------ 3 mado mado 4096 2011-10-04 07:55 tvheadend/
[mado@localhost ~]$ ls -l ~/.hts/tvheadend/
total 4
drwx------ 2 mado mado 4096 2011-10-04 07:55 accesscontrol/
[mado@localhost ~]$ ls -l ~/.hts/tvheadend/accesscontrol/
total 4
-rwx------ 1 mado mado 180 2011-10-04 07:55 1*
Now I have make a rebuild of the RPM-Package without the init script and there are the same problems. After rebooting the system all settings are lost. I hoe these informations ars usefull for you. Thanks in advance