瀏覽代碼

Create log2ram.initd

Init-File for Gentoo/OpenRC Init-System
pull/94/head
MegaV0lt 5 年之前
committed by GitHub
父節點
當前提交
bbb3023417
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 31 次插入0 次删除
  1. +31
    -0
      log2ram.initd

+ 31
- 0
log2ram.initd 查看文件

@@ -0,0 +1,31 @@
#!/sbin/openrc-run

# Init-Skript for log2ram
# This skript is designed to work on Gentoo Linux with OpenRC

description="Store logfiles in RAM to mimimize writes to disk."

. /etc/log2ram.conf # Include configuration of log2ram

depend() {
need localmount
before logger
}
start() {
ebegin "Starting Log2Ram"
/usr/local/bin/log2ram start
eend $?
}
stop() {
ebegin "Stopping Log2Ram"
/usr/local/bin/log2ram stop
eend $?
}

reload() {
ebegin "Syncing logs to disk"
/usr/local/bin/log2ram write
eend $?
}

Loading…
取消
儲存