Quellcode durchsuchen
Update log2ram.initd
Custom function write() to avoid restart of log2ram via cron
pull/94/head
MegaV0lt
vor 5 Jahren
committed by
GitHub
Ursprung
Commit
ea323c852d
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23
1 geänderte Dateien mit
4 neuen und
1 gelöschten Zeilen
-
log2ram.initd
|
|
@@ -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 $? |
|
|
|