mirror of
https://github.com/pygos/init.git
synced 2024-11-16 08:47:10 +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:
parent
29e4fc5607
commit
e7121bf467
3 changed files with 5 additions and 2 deletions
|
@ -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(ETCPATH, sysconfdir, [Fulle evaluated etc directory])
|
||||||
AC_DEFINE_DIR(STATEFILESPATH, prefix/var/lib, [Path for persistent state files])
|
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/sigkill])
|
||||||
AC_CONFIG_FILES([services/sigterm])
|
AC_CONFIG_FILES([services/sigterm])
|
||||||
AC_CONFIG_FILES([services/sysfs])
|
AC_CONFIG_FILES([services/sysfs])
|
||||||
|
|
|
@ -25,10 +25,11 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "backend.h"
|
#include "backend.h"
|
||||||
|
#include "config.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
|
||||||
#define SYSLOG_PATH "/var/log"
|
#define SYSLOG_PATH PREFIXPATH "/var/log"
|
||||||
|
|
||||||
|
|
||||||
static const enum_map_t levels[] = {
|
static const enum_map_t levels[] = {
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
|
||||||
#define SYSLOG_SOCKET "/dev/log"
|
#define SYSLOG_SOCKET PREFIXPATH "/dev/log"
|
||||||
|
|
||||||
#define GPL_URL "https://gnu.org/licenses/gpl.html"
|
#define GPL_URL "https://gnu.org/licenses/gpl.html"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue