On Sat, Jun 13, 2015 at 10:31:28PM +0100, Craig Skinner wrote:
> On 2015-06-13 Sat 22:39 PM |, Antoine Jacoutot wrote:
> > On Sat, Jun 13, 2015 at 08:18:41PM +0100, Craig Skinner wrote:
> > > 
> > > Inspiration taken from the postfix-{en,dis}able,install scripts:
> > > Much moved out of the rc script and into 'cups-toggle (enable|disable)'.
> > > 
> > 
> > I prefer the way it's done now.
> > It's automatic -- I don't want to have to remember to run yet another 
> > command each time I update (which is very often).
> > 
> > 
> 
> Would something like these in the PLIST automate it Antoine?
> 
> @extraexec ${TRUEPREFIX}/sbin/cups-toggle enable
> @extraunexec ${TRUEPREFIX}/sbin/cups-toggle disable

No because that means it will run at pkg_add time -- which is not good at all.
At least with the rc.d script it makes sense: if I want to start cups, then I 
obviously want it to replace lpd the time it is running. And when I stop it, 
lpd is back.

-- 
Antoine

Reply via email to