Michael Tokarev <m...@tls.msk.ru> writes: > On 20.01.2011 19:09, Jean-Philippe Menil wrote: >> start-stop-daemon --quiet --stop --oknodo --exec /usr/sbin/snmpd >> >> So it's not based on the pid of the process, but on the executable file. > > See above. And file a bugreport against debian snmpd startup script. > It is actually (albiet very low) security issue too: the startup > script will kill unrelated user processes named "snmpd" too.
Only if their /proc/self/exe links to the same inode as (the dom0's) /usr/sbin/snmpd, if I understand start-stop-daemon semantics. Otherwise, it would also stop the stop script itself, because /etc/init.d/foo also has an argv[0] of "foo"! ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users