[Pkg-ltsp-devel] Bug#387991: nbdswapd: Should accept swap directory configuration

Vagrant Cascadian vagrant at freegeek.org
Mon Sep 18 02:58:16 UTC 2006

On Sun, Sep 17, 2006 at 11:35:30PM +0200, Petter Reinholdtsen wrote:
> Package: ltsp-server
> Version: 0.99debian1
> By default, the new nbdswapd creates the swap file like this:
>   if [ -f /etc/ltsp/nbdswapd.conf ]; then
>     . /etc/ltsp/nbdswapd.conf
>   fi
>   if [ -z "$SWAP" ]; then
>     SWAP=$(tempfile)
>   fi
> But I would like to be able to tell it to store all the swap files in
> /var/opt/ltsp/swapfiles/ or similar, and this seem to be very
> complicated to specify with the current structure.  Can the script be
> changed to accept some SWAPDIR variable to specify where the swap
> files should be created?

in /etc/ltsp/nbdswapd.conf:

SWAP="$(mktemp -p /var/opt/ltsp/swapfiles/)"


if i add thse instructions to the swap documentation, would this be

live well,

More information about the Pkg-ltsp-devel mailing list