change log directory
This commit is contained in:
parent
7afceda9cb
commit
0d473a6fa7
@ -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/
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
10
startup/goircd.service.logrotate
Normal file
10
startup/goircd.service.logrotate
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
/var/log/goircd/*.log {
|
||||||
|
rotate 30
|
||||||
|
dateext
|
||||||
|
daily
|
||||||
|
delaycompress
|
||||||
|
missingok
|
||||||
|
notifempty
|
||||||
|
|
||||||
|
compressoptions -9
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user