distribution/packages/sysutils/util-linux/system.d/swap.service

22 lines
448 B
SYSTEMD
Raw Normal View History

2022-02-05 14:23:32 +00:00
[Unit]
Description=Mounting swapfile
DefaultDependencies=false
Before=swap.target shutdown.target
Conflicts=shutdown.target
Wants=swap.target
ConditionPathExists=/proc/swaps
ConditionKernelCommandLine=!noswap
ConditionKernelCommandLine=!installer
[Service]
Environment=HOME=/storage
Type=oneshot
ExecStartPre=/usr/lib/libreelec/mount-swap create
ExecStart=/usr/lib/libreelec/mount-swap mount
RemainAfterExit=yes
[Install]
WantedBy=basic.target