aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil
diff options
context:
space:
mode:
authorLiam Mitchell <[email protected]>2025-08-06 17:00:51 -0700
committerGitHub Enterprise <[email protected]>2025-08-06 17:00:51 -0700
commitf077d0b7145023a67522c8864d14431a37a22a0a (patch)
tree9f248d1bd896b710a79fa894361c72c051c6e863 /src/zenutil
parentUse apt instead of apt-get for installing system packages (diff)
parentFix permissions and ownership issues with service binary copy and remove unne... (diff)
downloadzen-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.cpp7
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
{