[Unit] Description=Enable compressed swap in memory using zram After=multi-user.target [Service] RemainAfterExit=yes ExecStart=/usr/sbin/zramstart ExecStop=/usr/sbin/zramstop Type=oneshot [Install] WantedBy=multi-user.target