SliTaz SliTaz Forum

You are not logged in.

#1 2012-12-13 06:40:56

HMA
Member
Registered: 2011-08-05
Posts: 73

cupsd dont start from frugal?

Hi Volks ...

on my Harddisk install i have cups with pdf-printer installed. cups will be started from rcS.conf every boot. And on HD install it works well.

But ... if i make a image with tazusb to start slitaz frugal, all work well only cupsd will not be started from rcS.conf ..... i don't understand why?

Offline

#2 2012-12-13 08:41:42

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: cupsd dont start from frugal?

when you boot frugal, does it work when you restart cupsd as root with

/etc/init.d/cupsd restart

when it does not work, then there is an error in the configuration

when it works the easiest way without investigating more time:

edit /etc/local.sh

and add

sleep 10

/etc/init.d/cupsd restart

Offline

#3 2012-12-13 09:19:58

HMA
Member
Registered: 2011-08-05
Posts: 73

Re: cupsd dont start from frugal?

Hi kultex.

thanks for the hints.

cupsd dont know a restart command

[c]root@AOD255:~# /etc/init.d/cupsd restart
Usage: /etc/init.d/cupsd [start|stop][/c]
ps gives back:

[c]root@AOD255:~# ps | grep cupsd
2096 root       0:00 grep cupsd[/c]
There is no cupsd daemon running!

If i try to start cups through init.d:

[c]root@AOD255:~# /etc/init.d/cupsd start
Not starting cups deamon: cups deamon is already running             [ OK ][/c]
ps give back again:

[c]root@AOD255:~# ps | grep cupsd
2096 root       0:00 grep cupsd[/c]
No cupsd running!

Now i start cupsd directly:

[c]root@AOD255:~# cupsd

root@AOD255:~# ps | grep cupsd
2102 root       0:00 cupsd -C /etc/cups/cupsd.conf
2104 root       0:00 grep cupsd
root@AOD255:~#[/c]
Is there a bug in the daemon script?

I couldn't find local.sh in /etc or anywhere. How can i start cupsd from rcS.conf with sleep 10 ??

Offline

#4 2012-12-13 09:41:15

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: cupsd dont start from frugal?

sorry

try

/etc/init.d/cupsd stop

/etc/init.d/cupsd start

and the local.sh is in /etc/init.d/local.sh

Offline

#5 2012-12-13 09:48:16

HMA
Member
Registered: 2011-08-05
Posts: 73

Re: cupsd dont start from frugal?

no prob.

i have done already .... the same:

"cups start" tell me cupsd already started .... althought cupsd isn't running... courios!

i will edit now the local.sh and make a new image and test it ... i tell you the result

Offline

#6 2012-12-13 09:52:08

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: cupsd dont start from frugal?

sorry - I have no cups installed on my machine

/etc/init.d/cups restart

because this is the correct command from cups config

http://www.cups.org/documentation.php/ref-cupsd-conf.html

Offline

#7 2012-12-13 10:07:59

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: cupsd dont start from frugal?

and it helps a lot to set the log level in the cupsd.conf to debug

Offline

#8 2012-12-13 12:55:22

HMA
Member
Registered: 2011-08-05
Posts: 73

Re: cupsd dont start from frugal?

Hi kultex.

the cupsd binary dont support "restart" also the cupsd daemon start script in /etc/init.d, but this isn't really important

ok ... here are the results. I removed cupsd from the rcS.conf and added the start command

[c]sleep 10
cupsd -c /etc/cups/cupsd.conf[/c]
to the local.sh.

Made a new image, boot it frugal and now cups works!

It seems, it was a runtime error while boot the frugal image ....

THANKS A LOT, for solving the Prob!! smile

Offline

#9 2012-12-13 13:36:44

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: cupsd dont start from frugal?

good that it worked...

I will add it to the cups howto

Offline

#10 2012-12-16 15:05:41

HMA
Member
Registered: 2011-08-05
Posts: 73

Re: cupsd dont start from frugal?

Ok .... i got the solution!

It's not a runtime error. If cupsd start, it create not a pidfile, only a empty file :/var/run/cups/cups.sock

If this file exist, cupsd-daemon minds cupsd is already running. If you create a image with running cupsd this file will be integrated in the image and so cupsd didn' start cause this file exist already.

Stop cupsd "/etc/init.d/cupsd stop" before you create the image and all works well.

smile

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

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