[opensuse 12.2] cups won't start at boot

Greetings !!

I checked if the symlinks in /etc/systemd/system/multi-user.target.wants, /etc/systemd/system/printer.target.wants and /etc/systemd/system/socket.target.wants were set and they are.
Funny thing some of them have ///lib/systemd/system/… target instead of /lib/systemd/system/…

I have to run the cupsd using init.d.

Is there a way to have the cupsstarted up at boot as chkconfig -l asks.

cups                      0:off  1:off  2:on   3:on   4:off  5:on   6:off
        cups-lpd:           off

For information; I tried with cups-lpd on but it’s the same behavior, cups is dead when calling cupsd status as I just get a console on X after login.Lot of things have changed I jumpedfrom 11.4 to 12.2 and I have to retrieve my marks ^^

Try

systemctl enable cups.service

then

systemctl start cups.service

After a reboot, cupsd should be running. Check via systemd with

systemctl status cups.service
antares:/var/log # systemctl status cups.service
cups.service - CUPS Printing Service
          Loaded: loaded (/lib/systemd/system/cups.service; enabled)
          Active: inactive (dead)
          CGroup: name=systemd:/system/cups.service

Mar 07 20:13:07 antares cupsd[5775]: No SubscriptionPrivateValues defined in policy allowallforanybody - using defaults.
Mar 08 15:49:02 antares cupsd[5657]: No limit for Validate-Job defined in policy allowallforanybody and no suitable template found.
Mar 08 15:49:02 antares cupsd[5657]: No limit for Cancel-Jobs defined in policy allowallforanybody and no suitable template found.
Mar 08 15:49:02 antares cupsd[5657]: No limit for Cancel-My-Jobs defined in policy allowallforanybody and no suitable template found.
Mar 08 15:49:02 antares cupsd[5657]: No limit for Close-Job defined in policy allowallforanybody and no suitable template found.
Mar 08 15:49:02 antares cupsd[5657]: No limit for CUPS-Get-Document defined in policy allowallforanybody and no suitable template found.
Mar 08 15:49:02 antares cupsd[5657]: No JobPrivateAccess defined in policy allowallforanybody - using defaults.
Mar 08 15:49:02 antares cupsd[5657]: No JobPrivateValues defined in policy allowallforanybody - using defaults.
Mar 08 15:49:02 antares cupsd[5657]: No SubscriptionPrivateAccess defined in policy allowallforanybody - using defaults.
Mar 08 15:49:02 antares cupsd[5657]: No SubscriptionPrivateValues defined in policy allowallforanybody - using defaults.

That’s all I have…
lpq shows nothing and firefox http://localhost:631 shows nothing (address not found – 404)

/var/log/cups/error_log

E [08/Mar/2014:15:49:02 +0100] Unable to bind socket for address [v1.::1]:631 - Cannot assign requested address.
E [08/Mar/2014:15:49:02 +0100] Unable to bind socket for address 127.0.0.1:631 - Address already in use.

I opened 'custom rule" the udp/tcp port 631 in iptables for all networks (0.0.0.0)

Are these informations could explain what is going on ?

It is said that newer versions of cups activates the daemon if only one printer is connected… as a “hotplug”.
I just plugged on my printer… and cups is activated.

That’s what I said: jumping from 11.4 to 12.2 has it’s bunch of surprises ^^

This thread is now closed/solved.

On 2014-03-08 16:26, soundlord wrote:

> E [08/Mar/2014:15:49:02 +0100] Unable to bind socket for address
> 127.0.0.1:631 - Address already in use.

Try google for that message. It rings a bell.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Sounds like you’re still playing catch up. Services are now managed by systemd, and a move was made to socket-activation (some time back), although there has been recent developer debate about whether it should be used or not. (FWIW, I have cups.service configured to start up without using socket-activation, so that it is running at boot.)

Did what adviced here: https://forums.opensuse.org/showthread.php/494878

It works for me.