[hblug] crazy printer

Steven Gilberd steve at pcresolutions.co.nz
Mon Feb 19 09:26:17 NZDT 2007


"What i was unaware of until you pointed it out recently was that not
all distros use the "service" command to simplify the
start/stop/restart/status calls. That little pearl was another "aha"
moment for me."

That command is extremely easy to add. Just stick the following script
sonewhere in your path (I usually go for /usr/bin/service) and make it
executable.

#! /bin/sh
/etc/init.d/$1 $2
exit 0

That's all there is to it! I'm sure someone could come up with a fancier
one, but that does the trick for me.

Cheers,
Steve

On Sun, 2007-02-18 at 09:28 +1300, Michael Adams wrote:
> On Sun, 18 Feb 2007 09:02:00 +1300
> Rene Bartosh wrote:
> 
> > Dosn't happen to be an HP Deskjet does it? I had one and it had a
> > similar problem from time to time.
> > 
> > I recall deleting print jobs with the lpq and lprm commands, then
> > restarting the printing subsystem with /etc/init.d/cupsys restart,
> > although your init scipts may be elsewhere if you do not have a
> > debian-based distro.
> > 
> 
> Pretty much every distro has the init scripts in the same place AFAIK.
> What is different is the position of the startup and shutdown scripts
> which call /etc/init.d. Sometimes these are in /etc/rcX.d and sometimes
> in etc/rc.d/rcX.d where X=initmode. Usually they are just all links to
> etc/init.d any way with a different name.
> 
> What i was unaware of until you pointed it out recently was that not all
> distros use the "service" command to simplify the
> start/stop/restart/status calls. That little pearl was another "aha"
> moment for me. Cheers
> 





More information about the HBLUG mailing list