mirror of
https://github.com/azlux/log2ram.git
synced 2023-10-10 13:37:24 +02:00
Removed unneeded postrotate support
This commit is contained in:
parent
a66120b94a
commit
e6d71736c8
6
log2ram
6
log2ram
@ -51,10 +51,6 @@ wait_for () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
rotate)
|
|
||||||
rm -f $LOG2RAM_LOG
|
|
||||||
;;
|
|
||||||
|
|
||||||
start)
|
start)
|
||||||
[ -d $HDD_LOG/ ] || mkdir $HDD_LOG/
|
[ -d $HDD_LOG/ ] || mkdir $HDD_LOG/
|
||||||
mount --bind $RAM_LOG/ $HDD_LOG/
|
mount --bind $RAM_LOG/ $HDD_LOG/
|
||||||
@ -76,7 +72,7 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "Usage: log2ram {clean-rotate|rotate|start|stop|write}" >&2
|
echo "Usage: log2ram {start|stop|write}" >&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -6,8 +6,5 @@
|
|||||||
notifempty
|
notifempty
|
||||||
delaycompress
|
delaycompress
|
||||||
compress
|
compress
|
||||||
postrotate
|
|
||||||
log2ram rotate > /dev/null
|
|
||||||
endscript
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user