Skip to content
Snippets Groups Projects
Commit 597b3049 authored by ale's avatar ale
Browse files

save logs in a more standard location

parent e21b8644
Branches
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ create_users() { ...@@ -25,7 +25,7 @@ create_users() {
} }
create_log_dir() { create_log_dir() {
logdir=/var/log/radioai logdir=/var/log
for d in radiod redirectord ; do for d in radiod redirectord ; do
mkdir -p ${logdir}/${d} mkdir -p ${logdir}/${d}
chown log:log ${logdir}/${d} chown log:log ${logdir}/${d}
......
...@@ -58,7 +58,7 @@ override_dh_install: ...@@ -58,7 +58,7 @@ override_dh_install:
install -d -o root -g root $(SVCDIR)/$$f/log ; \ install -d -o root -g root $(SVCDIR)/$$f/log ; \
install -m 755 -o root -g root $(CURDIR)/debian/services/$$f \ install -m 755 -o root -g root $(CURDIR)/debian/services/$$f \
$(SVCDIR)/$$f/run ; \ $(SVCDIR)/$$f/run ; \
echo '#!/bin/sh\nexec chpst -u log svlogd -tt /var/log/radioai/'$$f > \ echo '#!/bin/sh\nexec chpst -u log svlogd -tt /var/log/'$$f > \
$(SVCDIR)/$$f/log/run ; \ $(SVCDIR)/$$f/log/run ; \
chmod 0755 $(SVCDIR)/$$f/log/run ; \ chmod 0755 $(SVCDIR)/$$f/log/run ; \
done) done)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment