/etc/init.d/mon does not create /var/run/mon
Bug #46376 reported by
Alan Tam
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.
Changed in mon: | |
assignee: | motureviewers → midget |
To post a comment you must log in.
diff -Nur mon-0.99. 2/debian/ init mon-0.99. 2-new/debian/ init 2/debian/ init 2006-05-25 14:14:18.000000000 +0200 2-new/debian/ init 2006-05-25 14:13:59.000000000 +0200
--- mon-0.99.
+++ mon-0.99.
@@ -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() {