smstools folder under /var/run isn't recreated after reboot

Bug #221973 reported by Peter Magnusson
6
Affects Status Importance Assigned to Milestone
smstools (Ubuntu)
Fix Released
Undecided
John Dong
Hardy
Fix Released
Undecided
John Dong
Intrepid
Fix Released
Undecided
John Dong

Bug Description

Binary package hint: smstools

This is a thing I have found in other packages previous, after reboot the /var/run/xxxx folder isn't recreated.

I am running Ubuntu 8.04 and the package has version smstools-3.0.10-1
This time it is /var/run/smstools that isn't recreated after /var/run get's it regular cleanup at reboot.
This bug is somewhat related to bug #135033

This bug effectivly stops smstools from working at all after a reboot.
In /var/log/smsd.log one would find records like these..

smsd: Infofile /var/run/smstools/smsd.working cannot be created: No such file or directory
smsd: There was 1 major problem found.
smsd: Smsd main program terminated.

Steps to reproduce
1. Install package smstools ( sudo aptitude install smstools )
2. Make sure the smstools daemon is running ( sudo /etc/init.d/smstools start )
3. Verify the existence, owner and group of /var/run/smstools. It should be owned by smsd and the group should be dialout( ls -la /var/run )
4. Reboot
5. Login and repeat step 3. There shouldn't be any /var/run/smstools at all if this bug still is present

Peter Magnusson (kmpm)
description: updated
description: updated
Revision history for this message
Peter Magnusson (kmpm) wrote :

I'm attaching a debdiff that should fix this in an possible SRU it also fixes #135033

Peter Magnusson (kmpm)
description: updated
description: updated
Revision history for this message
Peter Magnusson (kmpm) wrote :

Disregard the previous patch use this one instead.

Revision history for this message
Peter Magnusson (kmpm) wrote :

This patch has some issues fixed by recommendations from geser on #ubuntu-motu

target is now hardy-proposed instead of hardy
Bug closure uses LP: instead of Close:

Revision history for this message
John Dong (jdong) wrote :

New debdiff looks good. ACK from motu-sru

Changed in smstools:
status: New → Confirmed
Revision history for this message
John Dong (jdong) wrote :

Sponsored into hardy-proposed...

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

Accepted into hardy-proposed, please test.

Changed in smstools:
assignee: nobody → jdong
assignee: nobody → jdong
status: New → Fix Committed
Revision history for this message
Peter Magnusson (kmpm) wrote :

I have tested and the fix works for me during clean install.
A upgrade from an earlier version shows another bug that doesn't come from this fix though. Look at bug #224241

Revision history for this message
Peter Magnusson (kmpm) wrote :

An updated patch is attached to bug #224241

Revision history for this message
Peter Magnusson (kmpm) wrote :

This is a patch for 3.1-1 thats in Intrepid.
Bug #224241 and bug #135033 have been fixed in 3.1-1

Peter Magnusson (kmpm)
Changed in smstools:
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package smstools - 3.1-1ubuntu1

---------------
smstools (3.1-1ubuntu1) intrepid; urgency=low

  * Changes to the init.d script
    - smstools folder under /var/run isn't recreated after reboot (LP: #221973)

 -- Peter Magnusson <email address hidden> Tue, 11 Jun 2008 18:57:41 +0200

Changed in smstools:
status: Fix Committed → Fix Released
Revision history for this message
ShadowMax76 (shadowmax76) wrote :

After a reboot

- smstools 3.0.10-1 (hardy):

ls -la /var/run/smstools/
ls: cannot access /var/run/smstools/: No such file or directory

- smstools 3.0.10-1ubuntu0.1 (hardy-proposed):

ls -la /var/run/smstools/
total 4
drwxr-xr-x 2 smsd dialout 60 2008-08-15 18:47 .
drwxr-xr-x 16 root root 640 2008-08-15 18:48 ..
-rw-r--r-- 1 smsd dialout 5 2008-08-15 18:47 smsd.pid

Updating to 3.0.10-1ubuntu0.1 solved the reboot problem, but introduced Bug #224241

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

Tested, and although bug 224241 still seems to be an issue, it isn't a regression from this SRU, thus copied to -updates.

Changed in smstools:
status: Fix Committed → Fix Released
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.