您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

30 行
481 B

  1. #!/sbin/openrc-run
  2. # Init-Skript for log2ram
  3. # This skript is designed to work on Gentoo Linux with OpenRC
  4. description="Store logfiles in RAM to mimimize writes to disk."
  5. depend() {
  6. need localmount
  7. before logger
  8. }
  9. start() {
  10. ebegin "Starting Log2Ram"
  11. /usr/local/bin/log2ram start
  12. eend $?
  13. }
  14. stop() {
  15. ebegin "Stopping Log2Ram"
  16. /usr/local/bin/log2ram stop
  17. eend $?
  18. }
  19. restart() {
  20. ebegin "Syncing logs to disk"
  21. /usr/local/bin/log2ram write
  22. eend $?
  23. }