Package Details: swapspace 1.18-1

Git Clone URL: https://aur.archlinux.org/swapspace.git (read-only, click to copy)
Package Base: swapspace
Description: A dynamic swap manager
Upstream URL: https://github.com/Tookmund/Swapspace
Licenses: GPL
Submitter: chungy
Maintainer: toastercup
Last Packager: toastercup
Votes: 14
Popularity: 0.000000
First Submitted: 2011-10-13 18:29 (UTC)
Last Updated: 2022-11-03 06:33 (UTC)

Latest Comments

« First ‹ Previous 1 2 3

chungy commented on 2012-07-29 16:36 (UTC)

Thanks; I don't use systemd so please let me know if the new script for it doesn't work.

nbvcxz commented on 2012-07-29 10:09 (UTC)

As Archlinux is slightly going to systemd - could you add the following files to PKGBUILD (service for systemd): /usr/lib/systemd/scripts/swapspace: #!/bin/sh start() { SWAPSPACE_ARGS="-q -d -p /var/run/swapspace.pid" PIDFILE=/var/run/swapspace.pid PID=$(cat $PIDFILE 2> /dev/null) if ! readlink -q /proc/$PID/exe | grep -q \^/usr/sbin/swapspace; then PID= rm -f $PIDFILE fi [ -r /etc/conf.d/swapspace ] && . /etc/conf.d/swapspace PID=$(get_pid swapspace) [[ -z $PID ]] && /usr/sbin/swapspace $SWAPSPACE_ARGS } stop() { /usr/sbin/swapspace -e [[ ! -z $PID ]] && kill $PID &> /dev/null } case $1 in start|stop) "$1" ;; esac and /usr/lib/systemd/system/swapspace: [Unit] Description=A dynamic swap manager [Service] Type=oneshot ExecStart=/usr/lib/systemd/scripts/swapspace start ExecStop=/usr/lib/systemd/scripts/swapspace stop RemainAfterExit=yes [Install] WantedBy=multi-user.target