[SOLVED] Re: Dependency based boot sequencing and printers
I found what I was ding wrong: >>> > The printer has stopped working! I'm suspicious of the >>> > dependency-based sequencing since that was the only upgrade which >>> > mentioned the printer, but another one of the upgrades may well have >>> > disturbed the printing system. Before I start the tedious debugging > > I have attempted to use insserv to get the printer daemons running > after cupsd starts, with no success. I have set up a file > /etc/insserv.d.conf/printers: > > debianrob:/etc/insserv.conf.d# cat printers > #RJH > # Define $printers to be the CUPS daemon (cupsd) > # Other printer daemons (at least, the Canon one) must start after > CUPS is running. > $printers cups > > The headers for my Canon printer daemon in init.d are: > > debianrob:/etc/init.d# head -20 ccpd > #!/bin/sh > # startup script for Canon Printer Daemon for CUPS (ccpd) > # Modified for Debian GNU/Linux > #RJH 13 May 2012 > ### BEGIN INIT INFO > # Provides: ccpd > # Required-Start: $remote_fs $syslog $printers > # Required-Stop: $remote_fs $syslog > # Default-Start: 2 3 4 5 > # Default-Stop: 0 1 6 > # Short-Description: Start ccpd at boot time > # Description: Enable the Canon Printer Daemon for CUPS > ### END INIT INFO > DAEMON=/usr/sbin/ccpd > LOCKFILE=/var/lock/subsys/ccpd > NAME=ccpd > DESC="Canon Printer Daemon for CUPS" > ... This was all correct, but, at the end of it all, I needed to do: insserv ccpd to register the new script. I found this on the novell web site where the manual entry for insserv(8) specifically points this out for slow learners like me :-) Cheers, Rob Hurle -- - Rob Hurle ANU, College of Asia and the Pacific School of Culture, History and Language Histories of Asia and the Pacific e-mail: rob1...@gmail.com Mobile (in VN): +84 948 243 538 Mobile (in OZ): +61 417 293 603 - -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/cabms7vipfmwugxp6lcs0cc8c0nm+2a8efzowh9enhsqk0nk...@mail.gmail.com
Re: Dependency based boot sequencing and Canon printer
Hello Rob, Rob Hurle wrote: > Further experiments on printing on the Canon printer through CUPS: > > > The printer has stopped working! I'm suspicious of the > > dependency-based sequencing since that was the only upgrade which > > mentioned the printer, but another one of the upgrades may well have > > disturbed the printing system. Before I start the tedious debugging > > Manually stopping both daemons and then starting cupsd before the > Canon daemon ccpd brought everything back together again. Now to > learn how to use dependency-based boot sequencing to have this done > automatically :-) Anyone played with this already? You can have a look at the LSB headers in the ccpd package and add CUPS to the list of requirements. If you have done that already, I am out of luck :) – Nevertheless, posting your LSB headers here might not hurt. Best regards, Claudius PS: The Reply-To: header of your email was set to your email address, so I’ll assume you’d like to have a personal copy? -- The only problem with seeing too much is that it makes you insane. -- Phaedrus http://chubig.net telnet nightfall.org 4242 signature.asc Description: PGP signature
Re: Dependency based boot sequencing and Canon printer
Further experiments on printing on the Canon printer through CUPS: > The printer has stopped working! I'm suspicious of the > dependency-based sequencing since that was the only upgrade which > mentioned the printer, but another one of the upgrades may well have > disturbed the printing system. Before I start the tedious debugging Manually stopping both daemons and then starting cupsd before the Canon daemon ccpd brought everything back together again. Now to learn how to use dependency-based boot sequencing to have this done automatically :-) Anyone played with this already? Cheers, Rob Hurle -- - Rob Hurle ANU, College of Asia and the Pacific School of Culture, History and Language Histories of Asia and the Pacific e-mail: rob1...@gmail.com Mobile (in VN): +84 948 243 538 Mobile (in OZ): +61 417 293 603 - -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/cabms7vhs0fhxxn1poj_1dgad9787pa0botm1ukf4_umv53n...@mail.gmail.com
Re: dependency based boot sequencing
On Tue, Sep 08, 2009 at 08:50:25PM -0700, Daniel Burrows wrote: > On Wed, Sep 09, 2009 at 12:41:18AM +0900, Osamu Aoki was > heard to say: > > On Tue, Sep 08, 2009 at 07:54:24AM -0700, Daniel Burrows wrote: > > > On Sun, Sep 06, 2009 at 03:53:06PM -0400, Charles Kroeger > > > was heard to say: > > > > Thanks for that suggestion but I don't use aptitude..I use apt, dpkg, > > > > and > > > > smartpm. > > [snip] > > > > aptitude --disable-columns -F '%p' search '~c' | xargs dpkg --purge > > > > > > ;-) > > > > What is the advantage of above over > > > > aptitude purge '~c' > > > > After all we use nice tool called aptitude :-) > > > > Unless some --force option is used with dpkg, they do the same. > > True, but aptitude isn't actually doing any package management there > (it could be run as a non-root user). If you have something against it, > I figured maybe just using it to generate a list of packages, to be > processed later with an acceptable tool, might be more palatable. I see your point. Anyway, it is nice way to show how these --disable-columns -F '%p' are used for scripting. I tend to use interactive mode with "l". It was refereshing to find these tricks for command line scripting in current manpages. Thanks. Osamu PS: I got lost since it should be something like $ aptitude --disable-columns -F '%p' search '~c' | sudo xargs dpkg --purge to get dpkg to work as root while running aptitude in user mode. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: dependency based boot sequencing
On Wed, Sep 09, 2009 at 12:41:18AM +0900, Osamu Aoki was heard to say: > On Tue, Sep 08, 2009 at 07:54:24AM -0700, Daniel Burrows wrote: > > On Sun, Sep 06, 2009 at 03:53:06PM -0400, Charles Kroeger > > was heard to say: > > > Thanks for that suggestion but I don't use aptitude..I use apt, dpkg, and > > > smartpm. [snip] > > aptitude --disable-columns -F '%p' search '~c' | xargs dpkg --purge > > > > ;-) > > What is the advantage of above over > > aptitude purge '~c' > > After all we use nice tool called aptitude :-) > > Unless some --force option is used with dpkg, they do the same. True, but aptitude isn't actually doing any package management there (it could be run as a non-root user). If you have something against it, I figured maybe just using it to generate a list of packages, to be processed later with an acceptable tool, might be more palatable. Daniel -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: dependency based boot sequencing
On Wed, Sep 09, 2009 at 12:41:18AM +0900, Osamu Aoki wrote: > On Tue, Sep 08, 2009 at 07:54:24AM -0700, Daniel Burrows wrote: > > On Sun, Sep 06, 2009 at 03:53:06PM -0400, Charles Kroeger > > was heard to say: > > > Thanks for that suggestion but I don't use aptitude..I use apt, dpkg, and > > > smartpm. > > > > > > dpkg -P works but it would seem each package must be listed > > > seperately. Is there a command that gets all the unpurged stuff in one go, > > > like your suggestion above with apititude? > > > > You could always try... > > > > aptitude --disable-columns -F '%p' search '~c' | xargs dpkg --purge > > > > ;-) > > What is the advantage of above over > > aptitude purge '~c' > > After all we use nice tool called aptitude :-) > > Unless some --force option is used with dpkg, they do the same. whoosh? A signature.asc Description: Digital signature
Re: dependency based boot sequencing
On Tue, Sep 08, 2009 at 07:54:24AM -0700, Daniel Burrows wrote: > On Sun, Sep 06, 2009 at 03:53:06PM -0400, Charles Kroeger > was heard to say: > > Thanks for that suggestion but I don't use aptitude..I use apt, dpkg, and > > smartpm. > > > > dpkg -P works but it would seem each package must be listed > > seperately. Is there a command that gets all the unpurged stuff in one go, > > like your suggestion above with apititude? > > You could always try... > > aptitude --disable-columns -F '%p' search '~c' | xargs dpkg --purge > > ;-) What is the advantage of above over aptitude purge '~c' After all we use nice tool called aptitude :-) Unless some --force option is used with dpkg, they do the same. Osamu -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: dependency based boot sequencing
On Sun, Sep 06, 2009 at 03:53:06PM -0400, Charles Kroeger was heard to say: > Thanks for that suggestion but I don't use aptitude..I use apt, dpkg, and > smartpm. > > dpkg -P works but it would seem each package must be listed > seperately. Is there a command that gets all the unpurged stuff in one go, > like your suggestion above with apititude? You could always try... aptitude --disable-columns -F '%p' search '~c' | xargs dpkg --purge ;-) Daniel -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: dependency based boot sequencing
On Sun,06.Sep.09, 23:19:39, Teemu Likonen wrote: > On 2009-09-06 23:17 (+0300), Teemu Likonen wrote: > > > I think "aptitude purge ~c" is much simpler than a command like: > > > > COLUMN=200 dpkg --list | awk '/^rc/ {print $2}' | xargs -r dpkg -P -- > ^^ > > Must be "COLUMNS". But is it really necessary if output is not a terminal? ;) Regards, Andrei -- If you can't explain it simply, you don't understand it well enough. (Albert Einstein) signature.asc Description: Digital signature
Re: dependency based boot sequencing
On 2009-09-06 23:17 (+0300), Teemu Likonen wrote: > I think "aptitude purge ~c" is much simpler than a command like: > > COLUMN=200 dpkg --list | awk '/^rc/ {print $2}' | xargs -r dpkg -P -- ^^ Must be "COLUMNS". -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: dependency based boot sequencing
On 2009-09-06 15:53 (-0400), Charles Kroeger wrote: >> # aptitude purge ~c > > Thanks for that suggestion but I don't use aptitude..I use apt, dpkg, and > smartpm. Well, use aptitude then! :-) I think "aptitude purge ~c" is much simpler than a command like: COLUMN=200 dpkg --list | awk '/^rc/ {print $2}' | xargs -r dpkg -P -- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: dependency based boot sequencing
On Sat,05.Sep.09, 21:33:42, Charles Kroeger wrote: > Some questions: is there a command in dpkg to purge these package related > files 'after' the package has been removed? I hacked up this little script, which i often use: apt-get autoclean; apt-get autoremove; orphaner; rm -f /var/cache/apt/archives/*.deb dpkg --purge $(dpkg --list |grep ^rc |awk '{print $2;}'); The line you want is the last one, that i got off the net somewhere. HTH; Nuno Magalhães -- () ascii-rubanda kampajno - kontraŭ html-a retpoŝto /\ ascii ribbon campaign - against html e-mail -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: dependency based boot sequencing
> # aptitude purge ~c Thanks for that suggestion but I don't use aptitude..I use apt, dpkg, and smartpm. dpkg -P works but it would seem each package must be listed seperately. Is there a command that gets all the unpurged stuff in one go, like your suggestion above with apititude? Apropos to my subject thread, I had to rebuild my system from a recent image after sysv-rc was installed on a dist-upgrade. Sid was completely inaccessable via grub2. It was as if there was no hard drive on the computer. Grub has a lot of commands and options, busybox too but if there's no hard drive all the commands in the world can't help you. Guess that just shows to go ya. -- CK signature.asc Description: PGP signature
Re: dependency based boot sequencing
On Sat,05.Sep.09, 21:33:42, Charles Kroeger wrote: > Some questions: is there a command in dpkg to purge these package related > files 'after' the package has been removed? Sure, but it is easier to use aptitude: # aptitude purge ~c Regards, Andrei -- If you can't explain it simply, you don't understand it well enough. (Albert Einstein) signature.asc Description: Digital signature