继续初始化测试前保存启动链路与页面迁移检查点
This commit is contained in:
1 parent
34d1fb88e5
commit
199d727ecc
20 files changed
+891
-67
No files matched your search
@@ -165,7 +165,6 @@ func renderUnitFile(options Options) (string, error) {
|
||||
"Description=" + normalized.Description,
|
||||
"After=network-online.target",
|
||||
"Wants=network-online.target",
|
||||
"ConditionPathExists=" + quoteUnitValue(normalized.ConfigPath),
|
||||
"",
|
||||
"[Service]",
|
||||
"Type=simple",
|
||||
@@ -180,6 +179,8 @@ func renderUnitFile(options Options) (string, error) {
|
||||
"TimeoutStopSec=30",
|
||||
"Restart=on-failure",
|
||||
"UMask=0077",
|
||||
"RuntimeDirectory=scert",
|
||||
"RuntimeDirectoryMode=0700",
|
||||
"NoNewPrivileges=yes",
|
||||
"CapabilityBoundingSet=",
|
||||
"AmbientCapabilities=",
|
||||
|
||||
@@ -26,7 +26,8 @@ func TestRenderUnitFileIncludesExecutableConfigurationAndWorkDir(t *testing.T) {
|
||||
"[Unit]",
|
||||
"Description=Scert SSL 证书管理服务",
|
||||
"After=network-online.target",
|
||||
"ConditionPathExists=\"/opt/Scert data/scert.json\"",
|
||||
"RuntimeDirectory=scert",
|
||||
"RuntimeDirectoryMode=0700",
|
||||
"[Service]",
|
||||
"Type=simple",
|
||||
"User=Scert",
|
||||
|
||||
Reference in new issue
Block a user