wackamole init script start fails with "Cannot write PID file" on 10.04 Server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wackamole (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Lucid |
Won't Fix
|
Undecided
|
Daniel T Chen | ||
Maverick |
Won't Fix
|
Undecided
|
Daniel T Chen | ||
Natty |
Won't Fix
|
Undecided
|
Daniel T Chen |
Bug Description
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.
test -d /var/run/$NAME || mkdir /var/run/$NAME
Note that this patch is not applicable to Oneiric, which does not have this source package.
## TEST CASE (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/
May 25 12:33:13 wacka1 wackamole[871]: Cannot write PID file /var/run/
## Regression potential
Slim to none - addition of the check for pid dir nonexistence does not impact other paths.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: wackamole 2.1.1-3.1
ProcVersionSign
Uname: Linux 2.6.32-
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
tags: | added: patch |
description: | updated |
description: | updated |
description: | updated |
tags: | added: testcase |
Changed in wackamole (Ubuntu Maverick): | |
status: | Fix Committed → Won't Fix |
Changed in wackamole (Ubuntu Natty): | |
status: | Fix Committed → Won't Fix |
Changed in wackamole (Ubuntu Lucid): | |
status: | In Progress → Triaged |
tags: | removed: removal-candidate |
SRU team ack. Please accept into lucid-proposed, maverick-proposed, and natty-proposed.