systemd :: cups.service not working

Adrian Sevcenco Adrian.Sevcenco at cern.ch
Tue Apr 10 09:28:42 UTC 2012


On 04/10/12 12:12, Reindl Harald wrote:
> Am 10.04.2012 11:01, schrieb Adrian Sevcenco:
>> Hi! I have a problem with starting cups .. i dont know when exactly
>> the problem appeared but i had a good working cups ... the thing is
>> that i still have as if i start the cups with the line from
>> cups.service in a root terminal i can use my printers without
>> problems .. that problem is that systemctl enable cups.service
>> and sysctemctl start cups.service does not start cups.
Hi!

> try
>
> systemctl disable cups.service systemctl stop cups.service systemctl
> enable cups.service systemctl start cups.service

[root at sev ~]# systemctl disable cups.service
rm '/etc/systemd/system/printer.target.wants/cups.service'
rm '/etc/systemd/system/sockets.target.wants/cups.socket'
rm '/etc/systemd/system/multi-user.target.wants/cups.path'

[root at sev ~]# systemctl stop cups.service

[root at sev ~]# systemctl enable cups.service
ln -s '/lib/systemd/system/cups.service'
'/etc/systemd/system/printer.target.wants/cups.service'
ln -s '/lib/systemd/system/cups.socket'
'/etc/systemd/system/sockets.target.wants/cups.socket'
ln -s '/lib/systemd/system/cups.path'
'/etc/systemd/system/multi-user.target.wants/cups.path'

[root at sev ~]# systemctl start cups.service

[root at sev ~]# netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address
     State       PID/Program name
tcp        0      0 127.0.0.1:25                0.0.0.0:*
     LISTEN      1282/master
tcp        0      0 0.0.0.0:60000               0.0.0.0:*
     LISTEN      1209/sshd

[root at sev ~]# systemctl status cups.service
cups.service - CUPS Printing Service
           Loaded: loaded (/lib/systemd/system/cups.service; enabled)
           Active: failed since Tue, 10 Apr 2012 12:24:06 +0300; 1min 
26s ago
          Process: 10462 ExecStart=/usr/sbin/cupsd -f (code=exited,
status=226/NAMESPACE)
           CGroup: name=systemd:/system/cups.service

and the thing is that if i start the /usr/sbin/cupsd -f it works ok ..

> there are in newer fedora versions (you did not say which you are
yeah sorry ... it is fedora 16 x86_64 with all updates installed

> using, if you have upgraded or anything about your setup) there are
> cups.path and cups.socket also involved which should be enabled with
> the above way
as you see above it is not working.. any other idea?

Thanks a lot!
Adrian





-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1984 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20120410/96394b56/attachment.p7s>


More information about the users mailing list