Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Reset CUPS printers at login' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Reset CUPS printers at login
Authored by: ferris on Oct 28, '03 12:24:33PM

killall -9 cupsd is probably not the best way to terminate that process...

When you terminate a process, you generally want to try to kill it in another way first. The reason you want to use a different way to kill it first is because you want to give the service a chance to close logs, clear caches, return allocated memory, etc. If you can't kill it that way, you should kill it with a KILL signal as a last resort.

From the kill manual...

Some of the more commonly used signals:
1 HUP (hang up)
2 INT (interrupt)
3 QUIT (quit)
6 ABRT (abort)
9 KILL (non-catchable, non-ignorable kill)
14 ALRM (alarm clock)
15 TERM (software termination signal)

I suggest first using a HUP signal, and then possibly a TERM before attempting a KILL. Check the status of the process after trying to end it and then resort to more drastic measures.

If anyone thinks I'm completely wrong here, let me know otherwise I will go on thinking this... =)

---
-C



[ Reply to This | # ]
Reset CUPS printers at login
Authored by: ReznorB5 on Oct 29, '03 05:17:22AM
I wonder if it is possible to have cupsd reload its config files like you can with the shell. In the shell (csh, bash) you can do something like this to have it reload the config file:

source .cshrc


[ Reply to This | # ]