-プロセスの強制終了-

   
 skillをインストール

 現在のプロセスの状態を出力すると・・・・

[root@sub2 ~]# ps -ax
PID TT STAT TIME COMMAND
〜〜〜〜省略〜〜〜〜〜〜〜〜〜〜〜
88 ?? Ss 0:56.44 sendmail: accepting connections (sendmail)
91 ?? Is 0:01.34 sendmail: Queue runner@00:30:00 for /var/spool/clientmqueue (sendmail)
〜〜〜〜省略〜〜〜〜〜〜〜〜〜〜〜

 sendmailが 生きてる(@_@;)

 不要なサービスは停止すること! はい。
 今から sendmailに死んでもらいます( ̄ー ̄)

 kill -9 88  で強制終了も可能でしょうが・・・

 FreeBSDには skillと言う コマンドがあるそうなので、portからインストールしたいと思います。

 まずは どこにあるのか・・・検索開始(*^_^*)

[yumi@sub2 ~]$ cd /usr/ports/
[yumi@sub2 /usr/ports]$ make search key=skill

Port: euchre-0.3
Path: /usr/ports/games/euchre
Info: Very popular card game with variable skill levels
Maint: laszlof@freebsdmatrix.net
Index: games
B-deps: XFree86-libraries-4.3.0_1 autoconf213-2.13.000227_5 automake14-1.4.5_9 expat-1.95.6_1 fontco
nfig-2.1_6 freetype2-2.1.3_1 gettext-0.11.5_1 glib-1.2.10_8 gtk-1.2.10_9 imake-4.3.0 libiconv-1.8_2
m4-1.4_1 pkgconfig-0.15.0
R-deps: XFree86-libraries-4.3.0_1 expat-1.95.6_1 fontconfig-2.1_6 freetype2-2.1.3_1 gettext-0.11.5_1
glib-1.2.10_8 gtk-1.2.10_9 imake-4.3.0 libiconv-1.8_2 pkgconfig-0.15.0

Port: trojka-1.0
Path: /usr/ports/games/trojka
Info: A game of skill
Maint: e@ik.nu
Index: games
B-deps:
R-deps:

Port: xtrojka-1.1
Path: /usr/ports/games/xtrojka
Info: Game of skill similar to T*tris
Maint: e@ik.nu
Index: games
B-deps: XFree86-libraries-4.3.0_1 expat-1.95.6_1 fontconfig-2.1_6 freetype2-2.1.3_1 imake-4.3.0 pkgc
onfig-0.15.0
R-deps: XFree86-libraries-4.3.0_1 expat-1.95.6_1 fontconfig-2.1_6 freetype2-2.1.3_1 imake-4.3.0 pkgc
onfig-0.15.0

Port: ppptraf-1.0
Path: /usr/ports/net/ppptraf
Info: A ncurses based PPP Traffic (bytes in/out) monitoring program
Maint: diskiller@cnbinc.com
Index: net
B-deps:
R-deps:

Port: skill-4.1
Path: /usr/ports/sysutils/skill
Info: SuperKILL, kill or renice processes by pid, name, tty or uid
Maint: jonny@jonny.eng.br
Index: sysutils
B-deps:
R-deps:



[yumi@sub2 /usr/ports]$ cd /usr/ports/sysutils/skill
[yumi@sub2 /usr/ports/sysutils/skill]$ make

>> skill-4.1.tgz doesn't seem to exist in /usr/ports/distfiles/.
>> /usr/ports/distfiles is not writable by you; cannot fetch.
*** Error code 1
Stop in /usr/ports/sysutils/skill.

 怒られた(;一_一) rootにならなくっちゃね^^;

[yumi@sub2 /usr/ports/sysutils/skill]$ su -
Password:
[root@sub2 ~]# cd /usr/ports/sysutils/skill
[root@sub2 /usr/ports/sysutils/skill]# make

>> skill-4.1.tgz doesn't seem to exist in /usr/ports/distfiles/.
>> Attempting to fetch from ftp://fast.cs.utah.edu/pub/skill/.
Receiving skill-4.1.tgz (45923 bytes): 100%
45923 bytes transferred in 2.3 seconds (19.16 kBps)
===> Extracting for skill-4.1
>> Checksum OK for skill-4.1.tgz.
===> Patching for skill-4.1
===> Applying FreeBSD patches for skill-4.1
===> Configuring for skill-4.1
===> Building for skill-4.1
cc -O -pipe -c main.c
cc -O -pipe -c argparse.c
rm -f getproc.c getproc.o
ln -s machdep/nbsd-44.c getproc.c
cc -O -pipe -c getproc.c
cc -O -pipe main.o argparse.o getproc.o -o skill

[root@sub2 /usr/ports/sysutils/skill]# make install
===> Installing for skill-4.1
rm -f //usr/local/bin/skill //usr/local/man/man1/skill.1
rm -f //usr/local/bin/snice //usr/local/man/man1/snice.1
install -c -s -o root -g wheel -m 555 skill //usr/local/bin
ln //usr/local/bin/skill //usr/local/bin/snice
install -c -o root -g wheel -m 444 skill.1 //usr/local/man/man1/skill.1
===> Generating temporary packing list
===> Compressing manual pages for skill-4.1
===> Registering installation for skill-4.1

 インストール完了!