28 lines
265 B
Text
28 lines
265 B
Text
|
#!/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 $?
|
||
|
}
|