HOW CAN I KEEP CUPS RUNNING ALWAYS?

Subject:
HOW CAN I KEEP CUPS RUNNING ALWAYS?

Problem:I must restart cups before every printing.
HOW CAN I KEEP CUPS RUNNING ALWAYS?
So I need to have cups running permanently.

I put cups script from /etc/init.d to run when PC start/autostart.

But after a while it is stopping so, I must restart it before printing otherwise the printer doesn’t work.

How can I keep cups running always?In background let’s say.

Thank you for help in advance

Pushy/Ploiesti,Romania

btw;why cups is stopping alone?itself?

cups service normally runs all the time if enabled. If it’s stopping, then it’s probably crashing with an error for some reason. Look in /var/log/cups for any clues to why it’s crashing.

thank you

please look:

E [12/Aug/2010:17:01:25 +0300] [cups-polld 91.208.213.1:631] Unable to connect to 91.208.213.1 on port 631: Connection refused
E [12/Aug/2010:17:01:25 +0300] [cups-polld 91.208.213.130:631] CUPS-Get-Printers failed: server-error-operation-not-supported
E [12/Aug/2010:17:01:55 +0300] [cups-polld 91.208.213.1:631] Unable to connect to 91.208.213.1 on port 631: Connection refused
E [12/Aug/2010:17:01:55 +0300] [cups-polld 91.208.213.130:631] CUPS-Get-Printers failed: server-error-operation-not-supported
E [12/Aug/2010:17:02:25 +0300] [cups-polld 91.208.213.1:631] Unable to connect to 91.208.213.1 on port 631: Connection refused
E [12/Aug/2010:17:02:25 +0300] [cups-polld 91.208.213.130:631] CUPS-Get-Printers failed: server-error-operation-not-supported
E [12/Aug/2010:17:02:55 +0300] [cups-polld 91.208.213.1:631] Unable to connect to 91.208.213.1 on port 631: Connection refused
E [12/Aug/2010:17:02:55 +0300] [cups-polld 91.208.213.130:631] CUPS-Get-Printers failed: server-error-operation-not-supported
E [12/Aug/2010:17:03:25 +0300] [cups-polld 91.208.213.1:631] Unable to connect to 91.208.213.1 on port 631: Connection refused
E [12/Aug/2010:17:03:25 +0300] [cups-polld 91.208.213.130:631] CUPS-Get-Printers failed: server-error-operation-not-supported
E [12/Aug/2010:17:03:55 +0300] [cups-polld 91.208.213.1:631] Unable to connect to 91.208.213.1 on port 631: Connection refused
E [12/Aug/2010:17:03:55 +0300] [cups-polld 91.208.213.130:631] CUPS-Get-Printers failed: server-error-operation-not-supported
E [12/Aug/2010:17:04:25 +0300] [cups-polld 91.208.213.1:631] Unable to connect to 91.208.213.1 on port 631: Connection refused
E [12/Aug/2010:17:04:25 +0300] [cups-polld 91.208.213.130:631] CUPS-Get-Printers failed: server-error-operation-not-supported
E [12/Aug/2010:17:04:55 +0300] [cups-polld 91.208.213.1:631] Unable to connect to 91.208.213.1 on port 631: Connection refused
E [12/Aug/2010:17:04:55 +0300] [cups-polld 91.208.213.130:631] CUPS-Get-Printers failed: server-error-operation-not-supported
E [12/Aug/2010:17:05:25 +0300] [cups-polld 91.208.213.1:631] Unable to connect to 91.208.213.1 on port 631: Connection refused
E [12/Aug/2010:17:05:25 +0300] [cups-polld 91.208.213.130:631] CUPS-Get-Printers failed: server-error-operation-not-supported
E [12/Aug/2010:17:05:55 +0300] [cups-polld 91.208.213.1:631] Unable to connect to 91.208.213.1 on port 631: Connection refused
E [12/Aug/2010:17:05:55 +0300] [cups-polld 91.208.213.130:631] CUPS-Get-Printers failed: server-error-operation-not-supported
E [12/Aug/2010:17:06:25 +0300] [cups-polld 91.208.213.1:631] Unable to connect to 91.208.213.1 on port 631: Connection refused
E [12/Aug/2010:17:06:25 +0300] [cups-polld 91.208.213.130:631] CUPS-Get-Printers failed: server-error-operation-not-supported
E [12/Aug/2010:17:53:39 +0300] Unable to open listen socket for address :::631 - Address family not supported by protocol.
E [12/Aug/2010:17:53:39 +0300] Unable to open listen socket for address ::1:631 - Address family not supported by protocol.
E [12/Aug/2010:17:53:39 +0300] Unable to bind socket for address 127.0.0.1:631 - Address already in use.

this is from /var/log/cups/error_log

maybe 631 is closed sometime;how can I open it?or based on the above error have you a idea?
thnak you once again.

pushy

First of all disable IPv6 for cups, since you don’t seem to have support for it enabled in the kernel. (Don’t ask me how, I haven’t needed to do this myself.)

Secondly you have something else running on port 631 that is preventing cups from starting. Maybe another cups? Do:

netstat -atnp | grep 631

to see what process has port 631.

finally i did it.thank you a lot