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: deb:
rm -rf ${BUILD_TMP} rm -rf ${BUILD_TMP}
mkdir -p ${BUILD_TMP}/usr/local/bin/ 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/ mkdir -p ${BUILD_TMP}/etc/systemd/system/
cp goircd ${BUILD_TMP}/usr/local/bin/ cp goircd ${BUILD_TMP}/usr/local/bin/
cp startup/goircd.service ${BUILD_TMP}/etc/systemd/system/ cp startup/goircd.service ${BUILD_TMP}/etc/systemd/system/

View File

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

View File

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