cupsd won't start due to new initscripts package (tmpfs on /var/run)

Bug #28347 reported by Michael Bienia
6
Affects Status Importance Assigned to Milestone
cupsys (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

cupsd fails to start because it can't write its pid file to /var/run/cups.
/var/run/cups is missing because the new initscript package mounts a tmpfs on
/var/run and the cupsys initscript doesn't check if /var/run/cups is there and
creates it if necessary.

Revision history for this message
Rui Matos (tiagomatos) wrote :

This also happens with apache2. Maybe this bug should be reassigned to the
initscripts package?

Revision history for this message
Rui Matos (tiagomatos) wrote :

Doing this after the system is running fixes it for me:

sudo mkdir /var/run/cups
sudo invoke-rc.d cupsys restart

Revision history for this message
Michael Hofmann (mh21) wrote :

Created an attachment (id=5636)
Proposed fix for the cups init script

Permissions seem to be set by cups later on

Revision history for this message
Martin Pitt (pitti) wrote :

 cupsys (1.1.99.b1.r4841-1ubuntu7) dapper; urgency=low
 .
   * debian/cupsys.init.d: Make sure that the PID file directory /var/run/cups
     exists. The new approach of mounting /var/run as tmpfs removes the
     directory that is shipped in the deb. (Ubuntu #22261)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.