Package Details: swapspace 1.13-3

Git Clone URL: https://aur.archlinux.org/swapspace.git (read-only)
Package Base: swapspace
Description: A dynamic swap manager
Upstream URL: https://github.com/Tookmund/Swapspace
Licenses: GPL
Submitter: chungy
Maintainer: chungy
Last Packager: chungy
Votes: 13
Popularity: 0.001442
First Submitted: 2011-10-13 18:29
Last Updated: 2017-10-16 04:20

Latest Comments

Dieter9 commented on 2017-10-16 09:26

The new version fix the problem. I can confirm, that the error message does not appear any more.
Thank you very much for your quick response.

chungy commented on 2017-10-16 04:22

I've been able to test this thoroughly, the target systemd decides to delete changes at random, swapspace might be included in that. I've changed it so it has WantedBy=multi-user.target instead, and this shouldn't fail.

You might need to delete your /etc/systemd/system/swap.target.wants/swapspace.service on upgrading. The best route is probably to do "systemctl disable swapspace.service" before upgrading, then do an enable again after upgrading.

Dieter9 commented on 2017-10-15 16:00

Since some weeks I get this error message during boot:
systemd[1]: sysinit.target: Job swap.target/start deleted to break ordering cycle starting with sysinit.target/start
This seems to be related to swapspace. But swapspace is still working fine.

chungy commented on 2016-12-28 11:07

The first warning is fine. swapspace uses the directory for the files it creates, there won't be any swap files pre-packaged however :)

The second warning should be fine too. Packages in base don't need to be explicitly defined as depends. I think namcap could be updated to be smarter about that.

apollo11w commented on 2016-12-27 00:07

Hmm, I hope I don't encounter any of the problems mentioned in the previous comments. That being said, this is what `namcap' outputs in yaourt:

`swapspace W: Directory (var/lib/swapspace) is empty
swapspace E: Dependency glibc detected and not included (libraries ['usr/lib/libc.so.6'] needed in files ['usr/bin/swapspace'])`

jprendes commented on 2016-02-05 15:18

The daemon fails to deallocate the swap files. This is due to it failing to correctly identify the files in /proc/swap.

By setting VARPREFIX to "/", swappath becomes "//var/lib/swapspace".
The length of the string is computed before it is canonized, so swappath_len is off by one, finally preventing to validate the path of the files in /proc/swap.

A workaround is to set VARPREFIX to ""

char101 commented on 2015-11-04 06:43

https://github.com/Tookmund/Swapspace/blob/5d53218727069f8a2a33bd89d8156e21640b1cdf/README#L10
If you install to somewhere other than /usr/local/ be sure to edit the
ETCPREFIX and VARPREFIX variables in src/env.h as well as the initscript

The default configuration path without modifying ETCPREFIX is /usr/local/etc/swapspace.conf not /etc/swapspace.conf

Blissfull commented on 2015-09-18 00:57

Error: Could not get filesystem information for swap directory '/usr/local/var/lib/swapspace': No such file or directory

chungy commented on 2015-03-24 22:48

Thanks. I've also taken the opportunity to redo the whole package for a proper systemd integration (no more shell script emulating the old initscripts). Please take note that instead of being wanted by multi-user.target anymore, it's now wanted by swap.target. You'll probably need to fix your systemd configuration if you have swapspace enabled.

Doing so should be simple, either run "systemctl disable swapspace.service" before upgrading, or run "rm /etc/systemd/system/multi-user.target/swapspace.service" afterwards, and then "systemctl enable swapspace.service".

chungy commented on 2015-03-24 22:46

Thanks. I've also taken the opportunity to redo the whole package for a proper systemd integration (no more shell script emulating the old initscripts). Please take note that instead of being wanted by multi-user.target anymore, it's now wanted by swap.target. You'll probably need to fix your systemd configuration if you have swapspace enabled.

All comments