0

我在 ec2 服务器上有一个正在运行的 HTTPD,我的服务文件在路径 /etc/systemd/system 中

systemctl start httpd.service 有时会使用它,我在 ssl.conf 无法启动或重新加载后对其进行了一些更改。但是当我运行服务中提到的重新加载命令时,/usr/sbin/httpd $OPTIONS -k graceful我只是不明白为什么它是单独工作而不是通过 systemd 工作。


#[Service]
#Environment=OPTIONS=-DMY_DEFINE

[Unit]
Description=The Apache HTTP Server
Wants=httpd-init.service
After=network.target remote-fs.target nss-lookup.target httpd-init.service
Documentation=man:httpd.service(8)

[Service]
Type=notify
Environment=LANG=C

ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND
ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
# Send SIGWINCH for graceful stop
KillSignal=SIGWINCH
KillMode=mixed
PrivateTmp=true

[Install]
WantedBy=multi-user.target
4

0 回答 0