21 lines
495 B
SYSTEMD
21 lines
495 B
SYSTEMD
|
# Armbian ZRAM configuration service
|
||
|
# Create 1 + number of cores compressed block devices
|
||
|
# This service may block the boot process for up to 30 sec
|
||
|
|
||
|
[Unit]
|
||
|
Description=Armbian ZRAM config
|
||
|
DefaultDependencies=no
|
||
|
After=local-fs.target
|
||
|
Before=armbian-ramlog.target
|
||
|
Conflicts=shutdown.target
|
||
|
|
||
|
[Service]
|
||
|
Type=oneshot
|
||
|
ExecStart=/usr/lib/armbian/armbian-zram-config start
|
||
|
ExecStop=/usr/lib/armbian/armbian-zram-config stop
|
||
|
RemainAfterExit=yes
|
||
|
TimeoutStartSec=30sec
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=sysinit.target
|