apolloconfig / apollo

Apollo is a reliable configuration management system suitable for microservice configuration management scenarios.
https://www.apolloconfig.com
Apache License 2.0
29.13k stars 10.2k forks source link

[systemd] Refusing to accept PID outside of service control group, acquired through unsafe symlink chain #5258

Open czd890 opened 5 days ago

czd890 commented 5 days ago

在高版本上用systemd启动时, 会收到 Refusing to accept PID outside of service control group, acquired through unsafe symlink chain 错误, 因为systemd不允许启动的服务在cgroup之外. 启动脚本是不是可以优化一下?

[Unit]
Description=apollo config service
After=network.target

[Service]
Type=forking
Restart=on-failure
PIDFile=/apollo/configservice/apollo-configservice/apollo-configservice.pid
# RemainAfterExit=true
ExecStart=/apollo/configservice/scripts/startup.sh
ExecStop= /apollo/configservice/scripts/shutdown.sh
[Install]
WantedBy=multi-user.target
czd890 commented 5 days ago

@nobodyiam 把$APOLLO_RUN_MODE 变量的判断改成前台/后台如何. 现在的docker值就是前台模式?

nobodyiam commented 1 day ago

docker 运行是前台模式的,是什么版本运行报错?