Restart Inetd

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
Developer's Notes | Licensing | Authors | Pikt-Users | Pikt-Workers | Related Projects | Site Index | Privacy Policy | Contact Us
Page best viewed at 1024x768 or greater.   Page last updated 2019-01-12.   This site is PIKT® powered.
Copyright © 1998-2019 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
View sample
systems revival
script macro