-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
49 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using System.Reflection; | ||
using NewLife.Agent.Models; | ||
|
||
namespace NewLife.Agent.Command; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace NewLife.Agent; | ||
namespace NewLife.Agent.Models; | ||
|
||
/// <summary> | ||
/// 菜单信息 | ||
|
2 changes: 1 addition & 1 deletion
2
NewLife.Agent/ServiceConfig.cs → NewLife.Agent/Models/ServiceConfig.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
namespace NewLife.Agent.Models; | ||
|
||
/// <summary>服务模型</summary> | ||
public class ServiceModel | ||
{ | ||
#region 属性 | ||
/// <summary>服务名</summary> | ||
public String ServiceName { get; set; } | ||
|
||
/// <summary>中文名</summary> | ||
public String DisplayName { get; set; } | ||
|
||
/// <summary>描述</summary> | ||
public String Description { get; set; } | ||
|
||
/// <summary>文件名</summary> | ||
public String FileName { get; set; } | ||
|
||
/// <summary>参数</summary> | ||
public String Arguments { get; set; } | ||
|
||
/// <summary>工作目录</summary> | ||
public String WorkingDirectory { get; set; } | ||
|
||
/// <summary>用户</summary> | ||
public String User { get; set; } | ||
|
||
/// <summary>组</summary> | ||
public String Group { get; set; } | ||
#endregion | ||
} |
28 changes: 2 additions & 26 deletions
28
NewLife.Agent/SystemdSetting.cs → NewLife.Agent/Models/SystemdSetting.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using System.Diagnostics; | ||
using NewLife.Agent.Models; | ||
using NewLife.Log; | ||
|
||
namespace NewLife.Agent; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using System.Diagnostics; | ||
using NewLife.Agent.Models; | ||
using NewLife.Log; | ||
|
||
namespace NewLife.Agent; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using System.Diagnostics; | ||
using NewLife.Agent.Models; | ||
using NewLife.Log; | ||
using NewLife.Serialization; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters