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.
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.
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: