SliTaz SliTaz Forum

You are not logged in.

#1 2014-07-02 00:13:48

allen
Member
Registered: 2014-06-22
Posts: 36

SliTaz 4.0: cups daemon versus cups.sock

I'm not going to go where no man has gone before. This problem is well documented on the forum whereas cups daemon claims to be running, is not (or thinks it is) and the solution is...

pkill cupsd

rm /var/run/cups/cups.conf

cupsd start

So having dealt with this more than once.. I ask, if there is no real fix, would there be anything wrong with removing cupsd from rcS.conf and running the following script in local.sh?

if [ -f /var/run/cups/cups.sock ]; then

   pkill /etc/init.d/cupsd

   rm -f /var/run/cups/cups.sock

   /etc/init.d/cupsd start

   else

   /etc/init.d/cupsd start

fi

I am not a programmer so I welcome your comments, corrections, criticisms, whatever it may be.

Thank you,

Allen

Offline

#2 2014-07-02 05:42:05

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: SliTaz 4.0: cups daemon versus cups.sock

Hi allen

I think this needs to be changed:

[c]pkill /etc/init.d/cupsd[/c]

Try

[c]pkill cupsd[/c]

or

[c]kill $(pgrep -f cupsd)[/c]

Offline

#3 2014-07-02 13:02:45

allen
Member
Registered: 2014-06-22
Posts: 36

Re: SliTaz 4.0: cups daemon versus cups.sock

Once again thank you mojo for your help. Your continued support is greatly appreciated!

I'll include the script with your modifications in the local.sh. Interesting my forum email also included your modified /etc/init.d/cupsd script. I'll assume after some thought you preferred I travel this road first, editing your initial reply.

Offline

#4 2015-01-03 15:16:20

DLT
Member
Registered: 2013-12-31
Posts: 5

Re: SliTaz 4.0: cups daemon versus cups.sock

I've also hit this problem, and am NOT a programmer.

I tried Allen's solution with mojo's changes and still had to:

rm /var/run/cups/cups.sock

/etc/init.d/cupsd start

To get printing to work, I have to admit I'm not even sure I did it right, I assume I just have to put the script as written in the local.sh file, or do I need to "activate" it in some way?

Thanks for any help, and my ancient apsire 7520 runs lovely now!

Dave.

Offline

#5 2015-01-13 19:22:06

TraceE
Member
Registered: 2014-02-02
Posts: 112

Re: SliTaz 4.0: cups daemon versus cups.sock

Hey DLT ...... I have two old aspire 7520's ..... smile   

Just got my network print server to work ... then made a new live cd and now it doesn't work again ... sad

Just going to try these fixes posted here ... good to see someone else with the same hardware and a similar situation .... smile

Offline

#6 2015-01-13 22:41:35

TraceE
Member
Registered: 2014-02-02
Posts: 112

Re: SliTaz 4.0: cups daemon versus cups.sock

My problem is fixed ..... smile

All I had to do was put:

/etc/init.d/cupsd stop

rm /var/run/cups/cups.sock

/etc/init.d/cupsd start

in /etc/init.d/local.sh and the cups browser interface is back online and printer is working again .. smile

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]