1
0
Fork 0
mirror of https://github.com/pygos/init.git synced 2024-12-22 23:30:50 +01:00

usyslogd: at least create files/sockets relative to prefix path

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
David Oberhollenzer 2018-08-16 22:38:52 +02:00
parent 29e4fc5607
commit e7121bf467
3 changed files with 5 additions and 2 deletions

View file

@ -58,6 +58,8 @@ AC_DEFINE_DIR(SBINPATH, sbindir, [Fully evaluated sbin directory])
AC_DEFINE_DIR(ETCPATH, sysconfdir, [Fulle evaluated etc directory])
AC_DEFINE_DIR(STATEFILESPATH, prefix/var/lib, [Path for persistent state files])
AC_DEFINE_DIR(PREFIXPATH, prefix, [Fully expaneded installation prefix])
AC_CONFIG_FILES([services/sigkill])
AC_CONFIG_FILES([services/sigterm])
AC_CONFIG_FILES([services/sysfs])

View file

@ -25,10 +25,11 @@
#include <errno.h>
#include "backend.h"
#include "config.h"
#include "util.h"
#define SYSLOG_PATH "/var/log"
#define SYSLOG_PATH PREFIXPATH "/var/log"
static const enum_map_t levels[] = {

View file

@ -31,7 +31,7 @@
#include "util.h"
#define SYSLOG_SOCKET "/dev/log"
#define SYSLOG_SOCKET PREFIXPATH "/dev/log"
#define GPL_URL "https://gnu.org/licenses/gpl.html"