Skip to content

Commit

Permalink
Fix: Add directory name separator
Browse files Browse the repository at this point in the history
Log service.
  • Loading branch information
daltomi committed Jan 21, 2023
1 parent 419ccb0 commit 11b06aa
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ endif

APP := xrunit

APP_VER := "6.3"
APP_VER := "6.4"

PKG_REV := "1"

Expand Down
5 changes: 4 additions & 1 deletion include/artixlinux.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@

#define SV "/usr/bin/sv"

/* Note: The paths of the directories without
the separator ('/') at the end. */

#define SV_DIR "/etc/runit/sv"

#define SV_RUN_DIR "/run/runit/service"

#define SYS_LOG_DIR "/var/log"
#define SYS_LOG_DIR "/var/log/"
4 changes: 4 additions & 0 deletions include/voidlinux.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@

#pragma once

#define HOST_OS "Void"

#define SV "/usr/bin/sv"

/* Note: The paths of the directories without
the separator ('/') at the end. */

#define SV_DIR "/etc/sv"

#define SV_RUN_DIR "/var/service"
Expand Down
1 change: 1 addition & 0 deletions src/xrunit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,7 @@ void MakeLogDirPath(std::string const& service, std::string& path)
static void MakeSysLogDirPath(std::string const& service, std::string& path)
{
path = SYS_LOG_DIR;
path += "/";
path += service;
}

Expand Down

0 comments on commit 11b06aa

Please sign in to comment.