[NTLUG:Discuss] Red Hat Secure Webserver

MadHat madhat at unspecific.com
Mon Jan 31 09:18:03 CST 2000


"Daniel L. Shipman" wrote:
> 
> So who was your old boss - can I get ahold of him and ask him how he did
> it????? - I know it sounds petty but entering it in all the time is a big
> pain in the butt
> 

Don't shut it down, just HUP the httpd or httpsd to reread the
configs... 

# kill -1 {PID}
or
# kill -HUP {PID}

you don't have to kill it and restart it to add a virt domain.  Or you
could do an expect script...

-----------START-------------
#!/usr/bin/expect 
# to start httpsd
spawn /usr/sbin/httpsd
set password [lindex \$argv 0] 
set send_slow {1 .1} 
sleep .1 
expect \"assword:\" 
sleep .1 
send -s \"\$password\\r\" 
expect eof         
------------END--------------

or something like that (I don't have a copy of that one in front of
me)...  then you can call it with the passwd

# /path/to/script passwd



-- 
MadHat




More information about the Discuss mailing list