Posted: Mon Aug 17, 2009 4:23 pm Post subject: weird issues on init.d to load, Fedora 10
Hi all, new to the Py world, but I am well on my way. I have a couple questions.
--when i run pyTivo from a command line, it seems to run fine. However;
1. when I run from init.d this is the log I see:
INFO:pyTivo.beacon:Scanning for TiVos...
INFO:pyTivo:pyTivo is ready.
INFO:pyTivo:192.168.9.130 [17/Aug/2009 12:13:57] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
1a. Does the above mean it's running correctly?
2. When I check status with: service pyTivo status I get the following error:
/etc/init.d/pyTivo: line 56: restart}: command not found
Joined: 04 Jan 2008 Posts: 2622 Location: Maryland
Posted: Mon Aug 17, 2009 7:26 pm Post subject:
1. The output looks normal. Do you have reason to believe that it's not running correctly?
2. I assume you're using the sample init.d script from the wiki? It doesn't support the "status" command. If you want it to, you can add that yourself. I don't know what it's supposed to do. _________________ My pyTivo fork . My page
I can hack in a status command support for my ubuntu startup script. Essentially it would grep for pytivo from the ps command and if it found it (return code 0) then it would report back status OK or running. If it doesn't find the pytivo binary running (return code 1) then it would report back not running.
It is quick and dirty but gives the general linux/unix user a simplistic status. What this would not do is tell us the status from the daemon itself and if it is hung or anything more intelligent than if the binary is running or not.
Thoughts on if this would be valuable or worthwhile?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum