Skip to content

Commit

Permalink
Fix logrotate for per-service logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dkozinn committed Jan 24, 2024
1 parent 3f0bdd0 commit 6d3023a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ export LIB=$HOME/.local/lib/python-local/nasautils
export LOGDIR=/etc/logrotate.d
export SYSTEMCTL=systemctl
# Uncomment below for debug
export PIP=echo
export SYSTEM=/tmp/test
export BIN=/tmp/bin
export LIB=/tmp/lib
export LOGDIR=/tmp/logdir
export SYSTEMCTL=echo
# export PIP=echo
# export SYSTEM=/tmp/test
# export BIN=/tmp/bin
# export LIB=/tmp/lib
# export LOGDIR=/tmp/logdir
# export SYSTEMCTL=echo

# Next two save the local context so running as sudo can find them
export home=$HOME
Expand Down
4 changes: 2 additions & 2 deletions nasabot.logrotate
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
notifempty
create
postrotate
systemctl restart nasamodqbot
systemctl restart nasapostbot
systemctl restart "nasamodqbot@*"
systemctl restart "nasapostbot@*"
systemctl restart nasaxpost
endscript
}

0 comments on commit 6d3023a

Please sign in to comment.