Skip to content

Commit

Permalink
Merge branch 'master' into 1.2.0-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
jssinn authored Dec 9, 2022
2 parents eebfbd5 + 49efc5f commit 4cc36fe
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
12 changes: 12 additions & 0 deletions docker/serivce/ksanlifecycle.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=KSAN GW Service
Requires=docker.service
After=docker.service

[Service]
Restart=always
ExecStart=/usr/bin/docker start -a ksan-lifecycle
ExecStop=/usr/bin/docker stop -t 2 ksan-lifecycle

[Install]
WantedBy=multi-user.target
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<EntityDeveloperDiagram>
<Diagram Version="1.22.3.0">
<DiagramModel>
Expand Down
4 changes: 4 additions & 0 deletions portal/Models/PortalModels/PortalModels.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@
<AutoGen>True</AutoGen>
<DependentUpon>PortalModels.efml</DependentUpon>
</Compile>
<Compile Update="PortalModels.ServiceEventLog.cs">
<AutoGen>True</AutoGen>
<DependentUpon>PortalModels.efml</DependentUpon>
</Compile>
<Compile Update="PortalModels.ServiceGroup.cs">
<AutoGen>True</AutoGen>
<DependentUpon>PortalModels.efml</DependentUpon>
Expand Down
22 changes: 22 additions & 0 deletions portal/PortalSvr/Services/ConfigurationInitializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,28 @@ public async Task Initialize()
var Result = await m_configProvider.SetConfig(EnumServiceType.ksanReplicationManager, StrKsanReplicationManager);
if (Result != null && Result.Result == EnumResponseResult.Success) await m_configProvider.SetConfigLastVersion(EnumServiceType.ksanReplicationManager, Result.Data.Version);
}

// KsanLogManager 설정이 없는 경우
var KsanLogManagerConfig = await m_configProvider.GetConfig(EnumServiceType.ksanLogManager);
if (KsanLogManagerConfig == null || KsanLogManagerConfig.Result == EnumResponseResult.Error)
{
// Ksan Gw의 기본 설정 정보를 읽어온다.
string StrKsanLogManager = File.ReadAllText(EnvironmentInitializer.KSAN_LOGMANAGER_SETTINGS_FILE);

var Result = await m_configProvider.SetConfig(EnumServiceType.ksanLogManager, StrKsanLogManager);
if (Result != null && Result.Result == EnumResponseResult.Success) await m_configProvider.SetConfigLastVersion(EnumServiceType.ksanLogManager, Result.Data.Version);
}

// KsanReplication 설정이 없는 경우
var KsanReplicationConfig = await m_configProvider.GetConfig(EnumServiceType.ksanReplication);
if (KsanReplicationConfig == null || KsanReplicationConfig.Result == EnumResponseResult.Error)
{
// Ksan Gw의 기본 설정 정보를 읽어온다.
string StrKsanReplication = File.ReadAllText(EnvironmentInitializer.KSAN_REPLICATION_SETTINGS_FILE);

var Result = await m_configProvider.SetConfig(EnumServiceType.ksanReplication, StrKsanReplication);
if (Result != null && Result.Result == EnumResponseResult.Success) await m_configProvider.SetConfigLastVersion(EnumServiceType.ksanReplication, Result.Data.Version);
}
}
catch (Exception ex)
{
Expand Down

0 comments on commit 4cc36fe

Please sign in to comment.