From bd084fbe3a4319f35261aec5b783b2be42d01192 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Mon, 27 Jan 2014 11:23:30 +0200 Subject: [PATCH] Move log configuration to /etc/gruntmasterd/ --- lib/Gruntmaster/Daemon.pm | 2 +- selinux/gruntmasterd.fc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Gruntmaster/Daemon.pm b/lib/Gruntmaster/Daemon.pm index 6991b7a..4adf801 100644 --- a/lib/Gruntmaster/Daemon.pm +++ b/lib/Gruntmaster/Daemon.pm @@ -149,7 +149,7 @@ sub got_job{ } sub run{ - Log::Log4perl->init('/etc/gruntmasterd-log.conf'); + Log::Log4perl->init('/etc/gruntmasterd/gruntmasterd-log.conf'); get_logger->info("gruntmasterd $VERSION started"); chdir tempdir 'gruntmasterd.XXXX', CLEANUP => 1, TMPDIR => 1; SUBSCRIBE jobs => \&got_job; diff --git a/selinux/gruntmasterd.fc b/selinux/gruntmasterd.fc index 6d67f32..f011981 100644 --- a/selinux/gruntmasterd.fc +++ b/selinux/gruntmasterd.fc @@ -2,5 +2,5 @@ /usr/(local/)?bin/gruntmaster-compile gen_context(system_u:object_r:gruntmaster_compile_exec_t, s0) /usr/(local/)?bin/gruntmaster-exec gen_context(system_u:object_r:gruntmaster_job_exec_t, s0) /usr/(local/)?bin/gruntmaster-paged gen_context(system_u:object_r:gruntmaster_paged_exec_t, s0) -/etc/gruntmasterd-log.conf gen_context(system_u:object_r:gruntmasterd_etc_t, s0) +/etc/gruntmasterd(/.*)? gen_context(system_u:object_r:gruntmasterd_etc_t, s0) /var/log/gruntmasterd gen_context(system_u:object_r:gruntmasterd_log_t, s0) -- 2.39.2