Skip to content

Commit

Permalink
systemd unit files: /usr/sbin/zram-init -> /sbin/zram-init
Browse files Browse the repository at this point in the history
  • Loading branch information
vaeth committed Jul 16, 2017
1 parent 25a6aac commit ab66d99
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ChangeLog for zram-init:

*zram-init-6.1.2:
Martin Väth <martin at mvath.de>:
- systemd unit files: /usr/sbin/zram-init -> /sbin/zram-init

*zram-init-6.1.1:
Martin Väth <martin at mvath.de>:
- Fix README concerning the installation of systemd unit files
Expand Down
4 changes: 2 additions & 2 deletions systemd/system/zram_btrfs.service
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ RemainAfterExit=true
# zram_swap.service, zram_var_tmp.service, zram_tmp.service, and
# that num_devices in modprobe.d/zram.conf contains the maximal used number + 1

ExecStart=/usr/sbin/zram-init -d1 -s2 -alz4 -tbtrfs -Lzbtrfs 2048 -
ExecStop=/usr/sbin/zram-init -d1 0 -
ExecStart=/sbin/zram-init -d1 -s2 -alz4 -tbtrfs -Lzbtrfs 2048 -
ExecStop=/sbin/zram-init -d1 0 -

[Install]
WantedBy=local-fs-pre.target
4 changes: 2 additions & 2 deletions systemd/system/zram_swap.service
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ RemainAfterExit=true
# zram_tmp.service and zram_var_tmp.service and that
# num_devices in modprobe.d/zram.conf contains the maximal used number + 1

ExecStart=/usr/sbin/zram-init -s2 -alz4 -Lzram_swap 2048
ExecStop=/usr/sbin/zram-init 0
ExecStart=/sbin/zram-init -s2 -alz4 -Lzram_swap 2048
ExecStop=/sbin/zram-init 0

[Install]
WantedBy=swap.target
4 changes: 2 additions & 2 deletions systemd/system/zram_tmp.service
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ RemainAfterExit=true
# zram_swap.service and zram_var_tmp.service and
# that num_devices in modprobe.d/zram.conf contains the maximal used number + 1

ExecStart=/usr/sbin/zram-init -d1 -s2 -alz4 -text4 -ostrictatime -m1777 -Ltmp_dir 2048 /tmp
ExecStop=/usr/sbin/zram-init -d1 0 /tmp
ExecStart=/sbin/zram-init -d1 -s2 -alz4 -text4 -ostrictatime -m1777 -Ltmp_dir 2048 /tmp
ExecStop=/sbin/zram-init -d1 0 /tmp

[Install]
WantedBy=local-fs-pre.target
4 changes: 2 additions & 2 deletions systemd/system/zram_var_tmp.service
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ RemainAfterExit=true
# zram_swap.service and zram_tmp.service and
# that num_devices in modprobe.d/zram.conf contains the maximal used number + 1

ExecStart=/usr/sbin/zram-init -d2 -s2 -alz4 -text4 -orelatime -m1777 -Lvar_tmp_dir 2048 /var/tmp
ExecStop=/usr/sbin/zram-init -d2 0 /var/tmp
ExecStart=/sbin/zram-init -d2 -s2 -alz4 -text4 -orelatime -m1777 -Lvar_tmp_dir 2048 /var/tmp
ExecStop=/sbin/zram-init -d2 0 /var/tmp

[Install]
WantedBy=multi-user.target

0 comments on commit ab66d99

Please sign in to comment.