diff options
| author | Liam Mitchell <[email protected]> | 2025-08-06 17:00:51 -0700 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-08-06 17:00:51 -0700 |
| commit | f077d0b7145023a67522c8864d14431a37a22a0a (patch) | |
| tree | 9f248d1bd896b710a79fa894361c72c051c6e863 /src/zenutil | |
| parent | Use apt instead of apt-get for installing system packages (diff) | |
| parent | Fix permissions and ownership issues with service binary copy and remove unne... (diff) | |
| download | zen-f077d0b7145023a67522c8864d14431a37a22a0a.tar.xz zen-f077d0b7145023a67522c8864d14431a37a22a0a.zip | |
Merge pull request #452 from ue-foundation/lm/full-service-install
Add --full option to service install, which will handle stop/uninstall if necessary, and copy binaries to install location
Diffstat (limited to 'src/zenutil')
| -rw-r--r-- | src/zenutil/service.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/zenutil/service.cpp b/src/zenutil/service.cpp index 6e68a01fa..25941bde1 100644 --- a/src/zenutil/service.cpp +++ b/src/zenutil/service.cpp @@ -321,7 +321,6 @@ namespace { std::string BuildUnitFile(std::string_view ServiceName, const std::filesystem::path& ExecutablePath, std::string_view CommandLineOptions, - std::string_view AliasName, std::string_view UserName) { return fmt::format( @@ -341,14 +340,12 @@ namespace { "ExecStart={} {}\n" "RuntimeDirectory={}\n" "[Install]\n" - "Alias={}\n" "WantedBy=multi-user.target", ServiceName, UserName, ExecutablePath, CommandLineOptions, - ExecutablePath.parent_path(), - AliasName); + ExecutablePath.parent_path()); } #endif // ZEN_PLATFORM_LINUX @@ -917,7 +914,7 @@ InstallService(std::string_view ServiceName, const ServiceSpec& Spec) UserName = UserResult.second; } - std::string UnitFile = BuildUnitFile(ServiceName, Spec.ExecutablePath, Spec.CommandLineOptions, UnitName, UserName); + std::string UnitFile = BuildUnitFile(ServiceName, Spec.ExecutablePath, Spec.CommandLineOptions, UserName); ZEN_DEBUG("Writing systemd unit file to {}", ServiceUnitPath.string()); try { |