mirror of
https://github.com/azlux/log2ram.git
synced 2023-10-10 13:37:24 +02:00
Update log2ram.initd
Custom function write() to avoid restart of log2ram via cron
This commit is contained in:
parent
f547ca5c15
commit
ea323c852d
@ -5,6 +5,9 @@
|
||||
|
||||
description="Store logfiles in RAM to minimize writes to disk."
|
||||
|
||||
# Command is available when the service is started
|
||||
extra_started_commands="write"
|
||||
|
||||
depend() {
|
||||
need localmount
|
||||
before logger
|
||||
@ -22,7 +25,7 @@ stop() {
|
||||
eend $?
|
||||
}
|
||||
|
||||
restart() {
|
||||
write() {
|
||||
ebegin "Syncing logs to disk"
|
||||
/usr/local/bin/log2ram write
|
||||
eend $?
|
||||
|
Loading…
Reference in New Issue
Block a user