[Pkg-net-snmp-commits] r155 - branches/net-snmp54/debian
Jochen Friedrich
jochen at alioth.debian.org
Fri Apr 13 12:02:00 UTC 2007
Author: jochen
Date: 2007-04-13 12:02:00 +0000 (Fri, 13 Apr 2007)
New Revision: 155
Modified:
branches/net-snmp54/debian/snmpd.default
branches/net-snmp54/debian/snmpd.init
branches/net-snmp54/debian/snmpd.postinst
Log:
Fix compatibility symlink for agentX socket
Modified: branches/net-snmp54/debian/snmpd.default
===================================================================
--- branches/net-snmp54/debian/snmpd.default 2007-04-13 11:46:17 UTC (rev 154)
+++ branches/net-snmp54/debian/snmpd.default 2007-04-13 12:02:00 UTC (rev 155)
@@ -18,3 +18,5 @@
# snmptrapd options (use syslog).
TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'
+# create symlink on Debian legacy location to official RFC path
+SNMPDCOMPAT=yes
Modified: branches/net-snmp54/debian/snmpd.init
===================================================================
--- branches/net-snmp54/debian/snmpd.init 2007-04-13 11:46:17 UTC (rev 154)
+++ branches/net-snmp54/debian/snmpd.init 2007-04-13 12:02:00 UTC (rev 155)
@@ -29,6 +29,11 @@
# Cd to / before starting any daemons.
cd /
+# Create compatibility link to old AgentX socket location
+if [ "$SNMPDCOMPAT" = "yes" ]; then
+ ln -sf /var/agentx/master /var/run/agentx
+fi
+
case "$1" in
start)
echo -n "Starting network management services:"
Modified: branches/net-snmp54/debian/snmpd.postinst
===================================================================
--- branches/net-snmp54/debian/snmpd.postinst 2007-04-13 11:46:17 UTC (rev 154)
+++ branches/net-snmp54/debian/snmpd.postinst 2007-04-13 12:02:00 UTC (rev 155)
@@ -7,11 +7,6 @@
chown -R snmp /var/lib/snmp
fi
-if [ -S /var/run/agentx ]; then
- rm -f /var/run/agentx
- ln -sf /var/agentx/socket /var/run/agentx
-fi
-
. /usr/share/debconf/confmodule
db_version 2.0
More information about the Pkg-net-snmp-commits
mailing list