/etc/init.d/mon does not create /var/run/mon

Bug #46376 reported by Alan Tam
16
Affects Status Importance Assigned to Milestone
mon (Ubuntu)
Fix Released
Medium
Dario Minnucci

Bug Description

Now that /var/run is a tmpfs, /etc/init.d/mon should create it if nonexistent. Otherwise /etc/init.d/mon stop will fail.

Revision history for this message
Dennis Kaarsemaker (dennis) wrote : Re: [Bug 46376] /etc/init.d/mon does not create /var/run/mon

diff -Nur mon-0.99.2/debian/init mon-0.99.2-new/debian/init
--- mon-0.99.2/debian/init 2006-05-25 14:14:18.000000000 +0200
+++ mon-0.99.2-new/debian/init 2006-05-25 14:13:59.000000000 +0200
@@ -46,6 +46,10 @@

 egrep -v '^[ ]*$|^#' $cfg >/dev/null || exit 0

+mkdir -p /var/run/mon
+chown daemon:root /var/run/mon
+chmod 755 /var/run/mon
+
 warn() {

Revision history for this message
Chuck Short (zulcss) wrote :

Thanks for the patch

Changed in mon:
status: Unconfirmed → Fix Released
Revision history for this message
Alan Tam (at) wrote :

Reopen, with major severity.

"chmod755" should be "chmod 755". Now that mon doesn't even start because of this syntax error.

Changed in mon:
status: Fix Released → In Progress
Revision history for this message
Jérémie Corbier (jcorbier) wrote : Debdiff

Debdiff.

Revision history for this message
Jérémie Corbier (jcorbier) wrote :

Assigning to motu-reviewers.

Changed in mon:
assignee: nobody → motureviewers
Revision history for this message
Gauvain Pocentek (gpocentek) wrote :

New patch uploaded, thanks Jérémie!

Changed in mon:
status: In Progress → Fix Committed
Revision history for this message
Jérémie Corbier (jcorbier) wrote :

mon (0.99.2-9ubuntu1) dapper; urgency=low

  * debian/init:
    - Fix a typo error introduced by the previous upload
      (Closes: Malone #46376).
    - Use `dirname $pid` instead of a hardcoded path to the /var/run dir.
  * Get back to the Ubuntu versionning scheme...

Changed in mon:
status: Fix Committed → Fix Released
Dario Minnucci (midget)
Changed in mon:
assignee: motureviewers → midget
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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