Comment 0 for bug 788085

Revision history for this message
Eric Williams (eric-canonical) wrote :

Binary package hint: wackamole

## Issue

* wackamole does not start at system boot

* wackamole init script startup fails with "Cannot write PID file"

## Environment

* working wackamole / spread configuration

* Lucid 10.04.2

* /var/run/ mounted as tmpfs

## Root Cause

/var/run/wackamole is created at dpkg install time. /var/run is tmpfs, however, and the directory disappears on reboot.

## Resolution

Adding the following lines to /etc/init.d/wackamole before daemon start resolves this issue:

  test -d /var/run/$NAME || mkdir /var/run/$NAME

See patch.

## Diagnostic Steps

1. install wackamole and spread

2. setup configuration so that it works as expected

3. reboot

4. Check for the following in /var/log/daemon.log:

May 25 12:33:13 wacka1 wackamole[871]: Cannot write PID file /var/run/wackamole/wackamole.pid

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: wackamole 2.1.1-3.1
ProcVersionSignature: Ubuntu 2.6.32-28.55-generic-pae 2.6.32.27+drm33.12
Uname: Linux 2.6.32-28-generic-pae i686
Architecture: i386
Date: Wed May 25 13:14:08 2011
InstallationMedia: Ubuntu-Server 10.04.2 LTS "Lucid Lynx" - Release i386 (20110211.1)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: wackamole