[K12OSN] schooltool daemon

Eric Harrison eharrison at mail.mesd.k12.or.us
Wed Aug 31 04:09:43 UTC 2005


On Tue, 30 Aug 2005, Peter Hartmann wrote:

> Hey Eric,
> Here's responses I got. Otherwise, everything else came out as expected.
> Thank you.
>
> [root at cal schooltool]# rpm -V schooltool-0.11.1-k12ltsp.4.4.1
> ..5....T c /etc/schooltool/schooltool.conf

Something is different about your config file. Can you attach
a copy of this file to your reply?

Excluding the comments, this is what it should contain:

 	web 7080
 	pid-file /var/run/schooltool/schooltool.pid
 	error-log-file /var/log/schooltool/schooltool.log
 	error-log-file STDERR
 	rest-access-log-file /var/log/schooltool/rest-access.log
 	web-access-log-file /var/log/schooltool/web-access.log
 	<zodb>
 	  <filestorage>
 	    path /var/lib/schooltool/Data.fs
 	  </filestorage>
 	</zodb>
 	reportlab_fontdir /etc/schooltool/fonts/


> [root at cal schooltool]# /bin/bash schooltool -c "/usr/bin/schooltool
> --config=/etc/schooltool/schooltool.conf"


Looks like you missed the "su -s " at the beginning of the command.
It should be:

    # su -s /bin/bash schooltool -c "/usr/bin/schooltool --config=/etc/schooltool/schooltool.conf"


-Eric



> /usr/bin/schooltool: line 4:
> A script to start the SchoolTool server in a Debian system.
> : command not found
> /usr/bin/schooltool: line 7: import: command not found
> /usr/bin/schooltool: schooltool: line 9: syntax error near unexpected token
> `0,'
> /usr/bin/schooltool: schooltool: line 9: `sys.path.insert(0,
> '/usr/lib/libschoolbell')'
>
>
>
>
> On 8/30/05, Eric Harrison <eharrison at mail.mesd.k12.or.us> wrote:
>>
>> On Tue, 30 Aug 2005, Peter Hartmann wrote:
>>
>>> Nope, same thing.
>>>
>>>
>>> P
>>>
>>> On 8/30/05, Eric Harrison <eharrison at mail.mesd.k12.or.us> wrote:
>>>>
>>>>
>>>>
>>>>
>>>> On Tue, 30 Aug 2005, Peter Hartmann wrote:
>>>>
>>>>> Hey Tom,
>>>>> Although I've only set schooltool to start with chkconfig, it "starts"
>>>>> schoolbell also. It says Starting schooltool [ok] Starting schoolbell
>>>> [ok].
>>>>> But they don't actually run. After boot is completed if I run /sbin
>>>> service
>>>>> schooltool start it doesn't complain that its already running but
>>>> starts. It
>>>>> doesn't release the terminal either.
>>>>>
>>>>> Thanks,
>>>>> Peter
>>>>
>>>> This is probably a problem with my initscripts, not schooltool.
>>>> I did four or five builds of the schooltool packages yesterday,
>>>> one of them had a typo in the initscript.
>>>>
>>>> So lets start with grabbing the latest package and restarting the
>> service:
>>>>
>>>> rpm -Uhv
>>>>
>> ftp://k12linux.mesd.k12.or.us/pub/K12LTSP/testing/RPMS/schooltool-0.11.1-k12ltsp.4.4.1.i386.rpm
>>>> /sbin/service schooltool restart
>>>>
>>>>
>>>> -Eric
>>>>
>>
>> Okay, let's do some basic debugging...
>>
>>
>> 1) First, check the logs. Is there an obvious error in the logs?
>>
>> /var/log/schooltool/schooltool.log
>>
>>
>> 2) Has something been changed? Run an RPM verify on the packages:
>>
>> # rpm -V schooltool-0.11.1-k12ltsp.4.4.1
>> # rpm -V schoolbell-1.2.1-k12ltsp.4.4.1
>>
>> You should get an empty response from these commands.
>>
>>
>> 3) Let's check to see if another copy of SchoolTool or SchoolBell is
>> running:
>>
>> # ps auxw | egrep "school[tool|bell]"
>>
>> You should get an empty response from this command.
>> Just to be sure you could always just try stopping both...
>>
>> # /sbin/service schooltool stop
>> # /sbin/service schoolbell stop
>>
>>
>> 4) Let's make sure that nothing else is listening on port 7080
>> This assumes you have the command "fuser" installed, if not
>> install the psmisc package (yum install psmisc)
>>
>> # fuser 7080/tcp
>>
>> Again you should get an empty response from this command.
>>
>>
>> 5) Now that we're sure nothing is already bound to port 7080, let's
>> start up schooltool by hand (this is a single long line, watch out
>> for line wrap!)
>>
>> # su -s /bin/bash schooltool -c "/usr/bin/schooltool
>> --config=/etc/schooltool/schooltool.conf"
>>
>>
>> The output should look something like this:
>>
>> Reading configuration from /etc/schooltool/schooltool.conf
>> 2005-08-30 19:39:58,962 zope.server.http (HTTP) started.
>> Hostname: server.ltsp
>> Port: 7080
>> Startup time: 4.438 sec real, 3.200 sec CPU
>>
>>
>>
>> If any of the above commands gives you output that you did not
>> expect or otherwise looks suspicious, post it to the list...
>>
>> -Eric
>>




More information about the K12OSN mailing list