8a44067838
SBINDIR and BINDIR can be set independently of PREFIX. This fixes broken shebangs in service files when SBINDIR is set to something other than PREFIX/sbin Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
24 lines
414 B
Plaintext
24 lines
414 B
Plaintext
#!@SBINDIR@/runscript
|
|
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
|
# Released under the 2-clause BSD license.
|
|
|
|
depend()
|
|
{
|
|
before fsck
|
|
keyword -jail -prefix
|
|
}
|
|
|
|
start()
|
|
{
|
|
ebegin "Activating block swap devices"
|
|
swapctl -A -t blk >/dev/null
|
|
eend 0 # If swapon has nothing todo it errors, so always return 0
|
|
}
|
|
|
|
stop()
|
|
{
|
|
ebegin "Deactivating block swap devices"
|
|
swapctl -U -t blk >/dev/null
|
|
eend 0
|
|
}
|