Externalize zram role

This commit is contained in:
Adrien Reslinger 2018-10-08 08:36:03 +02:00
commit 4a1e6c8cb3
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
3 changed files with 104 additions and 0 deletions

View file

@ -0,0 +1,14 @@
[Unit]
Description=ZRAM Swap
#After=syslog.target NetworkManager.service
[Service]
ExecStart=/usr/local/sbin/zram-swap.sh start
ExecStop=/usr/local/sbin/zram-swap.sh stop
#KillMode=process
#Restart=off
Type=oneshot
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target