[systemd-devel] systemd-way for initialization zram swap

Maksim 'max_posedon' Melnikau maxposedon at gmail.com
Mon Nov 19 12:27:05 PST 2012


On Mon, Nov 19, 2012 at 11:16 PM, Oleksii Shevchuk <alxchk at gmail.com> wrote:
> That's enough for me:
> # cat /etc/systemd/system/zram-swap\@.service
>...
This is exactly what I dislike a bit,

1. this service is kind of duplicating swap.target
2. echo inside duplicates things, which tmpfiles.d could do
3. service still based on some "internals" of swap.target - it doesn't
do swaoff before ExecStop ( I think swap.target do it for you )

I may be like to see, integration via fstab - via comment=, and
systemd special behavior on comment= oin swap targets


More information about the systemd-devel mailing list