PIKT

Samples: Restart Inetd

PIKT Logo
Home FAQ News Intro Samples Tutorial Reference Software Authors Licensing SiteSearch


Computer Magazines at Amazon.com

Information Management & Computer Security
Information Management & Computer Security

SigHupInetd.pkt is an example stand-alone Pikt script to restart inetd.  This is the script version customized for Linux and sourcing from the sighup_inetd_programs.cfg file.

#!/pikt/bin/pikt

init
        input proc "/bin/ps -xc | /usr/bin/grep inetd | /usr/bin/grep -v grep"
        dat $inetdpid  1
        dat $inetdproc $

rule
        exec "/bin/kill -HUP $inetdpid"

[For more examples, see Samples.]

Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software | Authors | Licensing | SiteSearch
Links | SiteIndex | Pikt-Users | Pikt-Workers | Contribute | ContactUs | Top of Page
Page best viewed at 1024x768.   Page last updated 2005-06-22.
This site is PIKT® powered.
PIKT® is a registered trademark of the University of Chicago.
Copyright © 1998-2005 Robert Osterlund.  All rights reserved.

Computer Books at Amazon.com

Linux Firewalls
Linux Firewalls

DNS for Dummies
DNS for Dummies

Ethereal Packet Sniffing
Ethereal Packet Sniffing