You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 5 година
1234567891011121314151617181920212223242526272829
  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. }