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

19 行
449 B

  1. [Unit]
  2. Description=Log2Ram
  3. DefaultDependencies=no
  4. Before=rsyslog.service syslog.target systemd-journald.service sysinit.target shutdown.target
  5. After=local-fs.target
  6. Conflicts=shutdown.target
  7. RequiresMountsFor=/var/log /var/log.hdd
  8. IgnoreOnIsolate=yes
  9. [Service]
  10. Type=oneshot
  11. ExecStart= /usr/local/bin/log2ram start
  12. ExecStop= /usr/local/bin/log2ram stop
  13. ExecReload= /usr/local/bin/log2ram write
  14. RemainAfterExit=yes
  15. [Install]
  16. WantedBy=sysinit.target