6135 links
  • GuiGui's Show
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
 
  • #727105 - snmpd: SNMPD initscript kills by process name in stead of PID and thus killing daemons in lxc containters - Debian Bug report logs
    « The init script /etc/init.d/snmpd will kill all processes with the name  snmpd in stead of killing by PID from /var/run/snmpd.pid which has as effect the killing of the daemon on all LXC containers. »

    Malgré la fin de ce thread, ce mauvais comportement continue avec Jessie (et même avec Stretch...).

    Solution élégante : passer à systemd avec cette unit qui juste fonctionne au poil : https://github.com/haad/net-snmp/blob/master/dist/snmpd.service que l'on met dans /etc/systemd/system/ puis systemctl enable snmpd.service.

    Mais avant de faire ça, on dézingue l'initscript :
        * sudo update-rc.d snmpd remove
        * sudo rm /etc/init.d/snmpd
        * sudo dpkg-divert --add --no-rename --divert /usr/share/snmp/snmpd.initscript /etc/init.d/snmpd

    La dernière ligne fait en sorte que dkpg ne remette pas l'initscript à sa place en cas de mise à jour du paquet snmpd. Voir https://www.debian-administration.org/article/118/Replacing_binaries_with_dpkg-divert . dpkg stockera l'initscript dans /usr/share/snmp/snmpd.initscript.

    Note : j'ai personalisé cette unit en remplaçant l'ExecStart par « ExecStart=/usr/sbin/snmpd -f -LS6d -Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf ». Exécution sous l'username/usergroup snmp/snmp, log de niveau info envoyés dans syslog.
    November 15, 2015 at 8:33:32 PM UTC - permalink - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=727105
Links per page: 20 50 100
 
Mentions légales identiques à celles de mon blog | CC BY-SA 3.0

Shaarli - The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community