Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-16-2009, 01:06 PM
|
#1
|
Member
Registered: Jun 2003
Location: Kalkar, Germany
Distribution: Slackware
Posts: 108
Rep:
|
How do I kill an at job?
I have started an infinite job under at. Now I want to stop it, and I cannot find out, how!
atq shows nothing, neither under root nor as myself. Well, I guess it isn't queued anymore...
It is also not shown under "ps ax", well, I guess that it runs under atd.
In man atd I found that atd looks in the /var/spool/atjobs directory. That contained one file .SEQ . I deleted that file, but still my infinite job comes back to life, even when I restart the whole system :-(
|
|
|
02-16-2009, 01:32 PM
|
#2
|
Member
Registered: Jun 2003
Location: Kalkar, Germany
Distribution: Slackware
Posts: 108
Original Poster
Rep:
|
Quote:
Originally Posted by jjge
It is also not shown under "ps ax", well, I guess that it runs under atd.
|
Wrong guess... I KILLed atd, but the job is still running.
|
|
|
02-17-2009, 02:35 AM
|
#3
|
Member
Registered: Jun 2003
Location: Kalkar, Germany
Distribution: Slackware
Posts: 108
Original Poster
Rep:
|
I tried lsof | grep traffix (traffix is the logfile) and I found a sleep 60s commando. Aha! That's right; the job is a continuous while ... sleep 60 cycle. Well, I killed it, and it reappeared with a different PID.
I renamed the command script, and restarted the whole system, and finally the job went away.
And I still don't know, how it resurrected every time, even after a full restart of the system.
|
|
|
02-17-2009, 05:26 AM
|
#4
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
At was running under init, with respawn specified. That's a tough one.
|
|
|
02-17-2009, 05:39 AM
|
#5
|
Member
Registered: Jun 2003
Location: Kalkar, Germany
Distribution: Slackware
Posts: 108
Original Poster
Rep:
|
... but then it should be in /etc/inittab, shouldn't it?
|
|
|
All times are GMT -5. The time now is 03:59 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|