You are not logged in.
Pages: 1
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
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
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
sorry
try
/etc/init.d/cupsd stop
/etc/init.d/cupsd start
and the local.sh is in /etc/init.d/local.sh
Offline
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
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
and it helps a lot to set the log level in the cupsd.conf to debug
Offline
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!! 
Offline
good that it worked...
I will add it to the cups howto
Offline
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.

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