Results 1 to 6 of 6

Thread: HOW CAN I KEEP CUPS RUNNING ALWAYS?

  1. #1
    Join Date
    Sep 2008
    Location
    Ploiesti
    Posts
    101

    Default 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

  2. #2
    Join Date
    Sep 2008
    Location
    Ploiesti
    Posts
    101

    Default Re: HOW CAN I KEEP CUPS RUNNING ALWAYS?

    btw;why cups is stopping alone?itself?

  3. #3
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: HOW CAN I KEEP CUPS RUNNING ALWAYS?

    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.

  4. #4
    Join Date
    Sep 2008
    Location
    Ploiesti
    Posts
    101

    Default Re: HOW CAN I KEEP CUPS RUNNING ALWAYS?

    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

  5. #5
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: HOW CAN I KEEP CUPS RUNNING ALWAYS?

    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.

  6. #6
    Join Date
    Sep 2008
    Location
    Ploiesti
    Posts
    101

    Default Re: HOW CAN I KEEP CUPS RUNNING ALWAYS?

    finally i did it.thank you a lot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •