[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

prngd start up script



 
    
prngd start up script
---------------------

Download prngd and egd from <www.sunfreeware.com> and install them

[root@eclectic var]# /usr/local/bin/prngd /var/run/egd-pool 

[root@eclectic var]# /usr/local/bin/egc.pl /var/run/egd-pool get
 20627 bits of entropy in pool

[root@eclectic var]# /usr/local/bin/egc.pl /var/run/egd-pool read 255
got 255 bytes of entropy: f358869c90a5bd4c5442e77239e44dda6c332b432a965bc0acd418a52bf4bf11081eed9e08c31de8837273ceedbc0c99c5fe2e6b0498575fa239201ff29f1820f00225a0485868f153e18726c51a2530c29f62db2d6282544707058b397f83e40950292eb4a8d5102debc2bac2481660eba60f767229b8d19cf078b5023948d68e6e3daa8b288c11041f2294dfcfc183647ccececb91157d3e49a50847ed954697c88ab12c0436b18a7f7af011328c444ae48e32656b5b476590d3f2ff75e9a75346835437f48c681a14bfc2ab6c948dfb549f2da3cdf30d7efa6308055a15a8ce4e98cb91c736b9c1f035325ace50e50f93e3b74a62ee09d8ff57ba2a8a92

[root@avon /]# cat /etc/init.d/prngd 
#!/bin/sh

pid=`/usr/bin/ps -e | /usr/bin/grep prngd | /usr/bin/sed -e 's/^  *//' -e 's/ .*//'`
case $1 in
'start')
        /usr/local/sbin/prngd /var/run/egd-pool
        ;;
'stop')
        if [ "${pid}" != "" ]
        then
                /usr/bin/kill ${pid}
        fi
        ;;
*)
        echo "usage: /etc/init.d/prngd {start|stop}"
        ;;
esac


[root@avon /]# ls -al /etc/rc2.d/S98prngd 
lrwxrwxrwx   1 root     other         15 May 14 15:22 /etc/rc2.d/S98prngd -> ../init.d/prngd

Google