瀏覽代碼

Update log2ram.initd

Custom function write() to avoid restart of log2ram via cron
pull/94/head
MegaV0lt 5 年之前
committed by GitHub
父節點
當前提交
ea323c852d
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      log2ram.initd

+ 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 $?


Loading…
取消
儲存