As you may already know, systemd is new init systemd for Linux. It is in Fedora since F15 and it's heading to other distros as well. It's compatible with SysV init scripts, but it cannot use it's advanced features with them.
See http://0pointer.de/public/systemd-man/daemon.html for details how systemd works and what's expected on snmpd/snmptrapd side to fully support its features. The integration with systemd itself is quite simple - it's mostly just parsing of some environment variables. systemd provides sample implementation of the parsing and related checks, I've copied it directly from http://cgit.freedesktop.org/systemd/tree/src/sd-daemon.c to our sources. Please check the license carefully, I am not a lawyer and I don't understand copyright law in various countries. Of course, I had to adjust the function names, includes, macros etc. to Net-SNMP coding style. Our server sockets are created deep within snmplib and transport modules, so the changes are quite scattered around the code. I've checked in my patches in git master. It must be explicitly enabled with --enable-systemd configure option. Resulting binaries will work even without systemd of course. I'd like to ask you to review my changes, including README.systemd if it is clear enough for admins. Nothing is set to stone, I can rework the patchset if there are any issues with it. Also some testing would be nice. I'd like to patch Fedora 16 and Rawhide Net-SNMP with these changes soon to get rid of SysV initscripts. Jan ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders