Bug#738801: cups: /etc/init.d/cups stop/start hang when systemd is installed
-=| Didier 'OdyX' Raboud, 13.02.2014 10:25:39 +0100 |=-
> Nye; do you happen to have xprint-common unpurged? (Please paste the
> result of $ dpkg -l xprint-common)
>
> Le jeudi, 13 février 2014, 11.04:16 Damyan Ivanov a écrit :
> > Heh, fiddling with /etc/init.d/cups I purged xprint-common and this
> > seems to have fixed the cups problem:
>
> Ha. That looks interesting. There's indeed some xprint handling in
> cups.init. As xprint disappeared from Debian before Wheezy, I think it's
> probably safe to drop this handling code from the init script. If Nye
> can confirm he has the same conditions than you, then that'd be the fix.
>
> Damyan: Could you re-install, remove (but not purge) xprint from
> oldstable, edit your /etc/init.d/cups.init to drop all instances of
> "restart_xprint" and see if it works for you?
$ sudo dpkg -r xprint-common ~
(Reading database ... 492747 files and directories currently installed.)
Removing xprint-common (2:1.6.0-4) ...
$ sudo service cups restart
<--- hang, ctrl-C
$ sudo vim /etc/init.d/cups # remove mentions of restart_xprint
$ sudo service cups restart ~
Warning: Unit file of cups.service changed on disk, 'systemctl --system daemon-reload' recommended.
$ sudo systemctl --system daemon-reload
$ sudo service cups restart ~
$
IOW, removing invocations of restart_xprint from /etc/init.d/cups
helped.
\o/
Reply to: