#!/sbin/openrc-run depend() { after localmount } start() { ebegin "Activating swap file" /sbin/swapfile eend $? } stop() { ebegin "Deactivating swap file" /sbin/swapoff -a >/dev/null eend $? } restart() { ebegin "Restarting swap file" start eend $? }