Hi
I write a little script that I would like to autostart after boot. I very simple one. It's only try to start other script thats start the program Couchpotato. Program I can normaly start by command "pytchon Couchpotato -d" its also works when I put this inside my sh script but it's not working inside chkonfig. Please healp.
I put this scrip inside /etc/init.d next run command:
chkconfig --add myscript.
After that:
chkconfig --level 345 myscript on.
Restart fedora do not autostart the service

.
service myscript start <- say OK but not working
What to do?
Here is simple script:
PHP Code:
#!/bin/sh
# chkconfig: - 21 79
# description: Ziemniak
exec="/down/couch/CouchPotato.py"
prog="SABnzbd"
#if [ -f /down/couch/config.ini ]; then
# . /down/couch/config.ini
#fi
#Source function library.
. /etc/rc.d/init.d/functions
start() {
echo -n $"Starting $prog: "
# . cd /down/couch
# CouchPotato.py -d ##### dont work
daemon --user=fr3sh $exec -d -f /down/couch/config.ini ####also dont work
retval=$?
echo
return $retval
}
stop() {
}
restart() {
stop
start
}
reload() {
restart
}
force_reload() {
restart
}
case "$1" in
start)
start
$1
;;
stop)
$1
;;
restart)
$1
;;
reload)
$1
;;
force-reload)
force_reload
;;
status)
;;
condrestart|try-restart)
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
exit 2
esac
exit $?