[FZH] 开启TLS后如何自启动httpd?

Yuan Yijun bbbush.yuan at gmail.com
Fri Nov 30 20:33:53 UTC 2012


不好意思,本来想说自己没有用过,结果邮件出了点儿问题—— Penango 邮件签名程序会忽略掉一部分邮件正文,如果没有保存草稿的话。

我感觉和 ssh-agent 是一样的吧?总得有个人输入密码才行,如果某个 agent 支持从配置文件里载入密码,那应该能自动启动,只是不知道从哪儿去找?这里有一个 https://github.com/mk-fg/systemd-password-agent 看起来是可以从任意文件里载入密码的。

如果你说的是 agent 没有一直运行,导致调试时重启 httpd 不方便,也许可以找一个能一直运行、可以 cache 密码的。 ssh-agent 运行以后就一直在内存里了,不过每个终端都要设置一下环境变量才找得到。

http://www.freedesktop.org/wiki/Software/systemd/PasswordAgents 提到,systemd 自带的 agent 里有两种 tty 的,可以解释一下有什么不同吗?有没有哪个是需要 eval、或者需要设置环境变量的?

"A simple tty agent which is built into "systemctl start" (and similar commands) and asks passwords to the user during manual startup of a service

A simple tty agent which can be run manually to respond to all queued passwords"



2012/11/30 Yuan Yijun <bbbush.yuan在gmail.com>:
> 不是用 systemctl 重启服务的?
>
>
> On Fri, Nov 30, 2012 at 9:21 AM, Robber Phex <robberphex在gmail.com> wrote:
>>
>> 如题,tls/ssl配置好后需要先运行 httpd -k start,然后运行 systemd-tty-ask-password-agent,
>> 有什么办法可以让开启TLS的apache自启动?
>>
>> --
>> Regards,
>> RobberPhex
>>
>> About me: http://about.me/RobberPhex
>> --
>> Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
>
>
>
>
> --
> bbbush ^_^



-- 
bbbush ^_^
-------------- 下一部分 --------------
A non-text attachment was scrubbed...
Name: Verify This Message with Penango.p7s
Type: application/pkcs7-signature
Size: 5080 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.fedoraproject.org/pipermail/chinese/attachments/20121130/b0631e8a/attachment.p7s>


More information about the Chinese mailing list