diff --git a/deploy/systemd/smail.service b/deploy/systemd/smail.service index 032edba..c3ba454 100644 --- a/deploy/systemd/smail.service +++ b/deploy/systemd/smail.service @@ -7,9 +7,9 @@ Wants=network-online.target Type=simple User=smail Group=smail -EnvironmentFile=/etc/smail/smail.env # 运行环境仅由 root 可读写的独立文件提供,避免在 unit 中混入部署环境配置。 EnvironmentFile=/etc/smail/smail.env +EnvironmentFile=/etc/smail/smail.env WorkingDirectory=/opt/smail ExecStart=/opt/smail/smail Restart=on-failure