1
0

更新 inode-client systemd 配置

This commit is contained in:
Sense T 2025-03-01 10:48:17 +08:00
parent de60d7081a
commit e7e5243f09

View File

@ -23,19 +23,20 @@ in
environment.etc."iNode/inodesys.conf".source = "${cfg.package}/etc/iNode/inodesys.conf"; environment.etc."iNode/inodesys.conf".source = "${cfg.package}/etc/iNode/inodesys.conf";
environment.systemPackages = [ cfg.package ]; environment.systemPackages = [ cfg.package ];
systemd.services.h3c-inode-client = { systemd.services.h3c-inode-client =
#wantedBy = [ let
# "network-online.target" target = "network-online.target";
# "graphical.target" in
#]; {
after = [ "network-online.target" ]; wants = [ target ];
serviceConfig = { after = [ target ];
Type = "simple"; serviceConfig = {
RemainAfterExit = "yes"; Type = "simple";
ExecStartPre = "${cfg.package}/bin/setup"; RemainAfterExit = "yes";
ExecStart = "${cfg.package}/bin/AuthenMngService"; ExecStartPre = "${cfg.package}/bin/setup";
ExecStop = "${cfg.package}/bin/AuthenMngService -k"; ExecStart = "${cfg.package}/bin/AuthenMngService";
ExecStop = "${cfg.package}/bin/AuthenMngService -k";
};
}; };
};
}; };
} }