瀏覽代碼
Update log2ram.initd
Custom function write() to avoid restart of log2ram via cron
pull/94/head
MegaV0lt
5 年之前
committed by
GitHub
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: 4AEE18F83AFDEB23
共有
1 個文件被更改,包括
4 次插入 和
1 次删除
-
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 $? |
|
|
|