Hi. I'm attaching patches (directly from perforce) which implements three new flags: -F pidfile Restrict matches to process which pid is stored in pidfile file. -i Ignore case distinctions in both the process table and the supplied pattern. -j jid Restrict matches to processes inside jails with a jail ID in the comma-separated list jid. The value zero is taken to mean any jail ID. The '-F' option will allow for more safe kill `cat /var/run/daemon.pid`, because one can call it as: pkill -F /var/run/sshd.pid sshd, so if pid from the file not belongs to sshd daemon, it won't be killed. The '-i' flag was obtained from Jonathan Perkin's patch posted on NetBSD mailing list. The '-j' option is simlar to Solaris' '-z' option (for Solaris zones). In addition, there is a patch which allows to print process jail ID from ps(1). -- Pawel Jakub Dawidek http://www.wheel.pl pjd_at_FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am!
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:29 UTC