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.

20 regels
578 B

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