change log directory

This commit is contained in:
Meng Zhuo 2017-01-12 17:06:09 +08:00
parent 7afceda9cb
commit 0d473a6fa7
3 changed files with 12 additions and 2 deletions

View File

@ -7,7 +7,7 @@ include common.mk
deb:
rm -rf ${BUILD_TMP}
mkdir -p ${BUILD_TMP}/usr/local/bin/
mkdir -p ${BUILD_TMP}/var/lib/goircd/history
mkdir -p ${BUILD_TMP}/var/log/goircd
mkdir -p ${BUILD_TMP}/etc/systemd/system/
cp goircd ${BUILD_TMP}/usr/local/bin/
cp startup/goircd.service ${BUILD_TMP}/etc/systemd/system/

View File

@ -2,7 +2,7 @@
Description=goIRC daemon
[Service]
ExecStart=/usr/local/bin/goircd -logdir /var/lib/goircd/history
ExecStart=/usr/local/bin/goircd -logdir /var/log/goircd/
Restart=once
RestartSec=3s

View File

@ -0,0 +1,10 @@
/var/log/goircd/*.log {
rotate 30
dateext
daily
delaycompress
missingok
notifempty
compressoptions -9
}