LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-24-2002, 12:36 PM   #1
knandyal
LQ Newbie
 
Registered: Feb 2002
Posts: 2

Rep: Reputation: 0
Question atd is messed up


After going thru all the resources, I have come here...

I went through most of the newsgroups and still did not find an answer for my problem with at command. I seek your help in fixing, what looks like a bug.
Any help that you might provide is greatly appreciated.

Thanks
Karthik Nandyal
Instinet Corp,
New York, NY.

Issue 1
----------


Problem : The at job shows up in queue even after it has been run successfully.

How this problem affects us ? - Any new job that I submit after this behaves randomly (meaning that the new job runs sometimes)

My observations - If I submit a subsequent job, then the queue gets cleared. But this happens ONLY if the subsequent jobs runs successfully. It is almost like the new job "kicks" the stale job out of the queue.

Example:

[root@nh0029 root]# date
Mon Jun 24 12:03:13 EDT 2002 <=== Current Time

[root@nh0029 root]# atq
19 2002-06-24 11:09 = rts <=== This job completed normally. But is not removed from the queue.

[root@nh0029 at]# ls -la /var/spool/at
drwx------ 3 daemon daemon 1024 Jun 24 11:09 .
drwxr-xr-x 11 root root 1024 Apr 5 12:02 ..
-rwx------ 1 rts 66 3878 Jun 24 11:09 =000130104a74d <=== This is the job and still is there.
-rw------- 1 daemon daemon 6 Jun 24 11:09 .SEQ
drwx------ 2 daemon daemon 1024 Jun 24 11:09 spool

[root@nh0029 at]# uname -a
Linux nh0029 2.4.18-3smp #1 SMP Thu Apr 18 07:27:31 EDT 2002 i686 unknown



[root@nh0001 root]# atq -V
at version 3.1.8
Bug reports to: ig25@rz.uni-karlsruhe.de (Thomas Koenig)


Issue 2
-------



Problem : Multiple atd starts up when i invoke atd daemon using the rc scripts.

How this problem affects us ? - Since there is more than one atd, my job gets confused as to which one it should get from the pid and use it.

My observations - I manually kill the second atd.


Example:


[root@nh0029 at]# service atd stop
stopping atd: [ OK ] <==== atd is now stopped
[root@nh0029 at]# service atd start
Starting atd: [ OK ] <==== I start atd

[root@nh0029 at]# ps -ef | grep -i atd
daemon 23116 1 0 11:09 ? 00:00:00 /usr/sbin/atd <==== 2 instances of atd startup
daemon 23589 1 0 12:06 ? 00:00:00 /usr/sbin/atd

[root@nh0029 at]# cat /var/run/atd.pid
23589 <==== only one pid is trapped in at.pid
 
Old 06-28-2002, 04:18 PM   #2
kop
LQ Newbie
 
Registered: Jul 2001
Posts: 24

Rep: Reputation: 15
Fix problem 2 first

You need to figure out why more than one atd is running.

Someone has been messing with your system's startup scripts.

Check /etc/rc.d/rc.local

Try:

find /etc/rc.d/init.d -name '*atd'

(it's /etc/init.d on newer systems)

If you find more than on S<nn>atd in a single /etc/rc<n>.d directory
then that's where it's getting started twice.

See /etc/rc.d/rc for how the links are used to start system services. Or I think it's explained in the linux administrator's guide found at www.tldp.org.

Try:

grep -r atd /etc/rc.d

It's all shell scripts in there so you should be able to figure it out.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
atd stopped working beaming_linux Linux - Software 7 03-25-2005 07:54 AM
Permissions Problem - atd msilvers Linux - Security 1 08-28-2004 05:57 AM
Messed Up Already !!! tamtam Linux - Newbie 7 05-07-2004 04:29 AM
rm cannot remove /var/run/atd.pid and /var/run/xdm.pid danishmr Linux - Software 1 05-04-2004 08:01 AM
really messed up X JunLitsu Linux - Software 0 05-06-2003 01:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration