expect 로 아파치 실행시키는데 문제..
글쓴이: 망치 / 작성시간: 월, 2009/04/20 - 9:40오전
apache.sh 스크립트 내용
#!/usr/local/bin/expect spawn /usr/local/sbin/apachectl startssl; expect -re "Enter pass phrase:" sleep 0.5 send "password\r" interact
아래는 스크립트 실행결과..
이상없이 실행됐다고 나오는데 프로세스를 보면 아파치가 안떠있습니다.
직접 /usr/local/sbin/apachectl startssl 를 타이핑해서 패스워드 넣어주면 이상없이 아파치가 뜨구요.
실행 결과 메세지는 아래와 똑같이 나옵니다. expect 를 처음 써봤는데 저런 데몬을 띄울땐 특별한 처리를 해줘야 하나요?
# ./apache.sh spawn /usr/local/sbin/apachectl startssl Apache/1.3.37 mod_ssl/2.8.28 (Pass Phrase Dialog) Some of your private key files are encrypted for security reasons. In order to read them you have to provide us with the pass phrases. Server xxx.xxx.com:443 (RSA) Enter pass phrase: Ok: Pass Phrase Dialog successful. /usr/local/sbin/apachectl startssl: httpd started #
Forums:
일단 httpd.conf 에
일단 httpd.conf 에 SSLPassPhraseDialog exec 를 이용해서 해결했습니다
---------------------------------------
http://www.waitfor.com/
http://www.textmud.com/
댓글 달기