[root@mylinux]# swapon -s
Filename Type Size Used Priority
/dev/systemvg/swapvol (deleted) partition 4095992 0 -3
According to http://kbase. redhat.com/faq/FAQ_79_4331.shtm we need to
add “swapoff -a && swapon -a” to the end of /etc/rc.d/rc. sysinit
We can also run
#swapoff -a && swapon -a
To fix it live, and we’ll see:
[root@mylinux]# swapon -s
Filename Type Size Used Priority
/dev/systemvg/swapvol partition 4095992 0 -3
114/433
Print extended info about your rpms
Use the queryformat modifier to print more info about your rpm
# rpm -qa –queryformat %-{name}-%{version}-%{release}-%{arch}”n”
You can grep for something there, because it is a full listing
Thanks to Fergus O’hea
Lighttpd reverse proxy
Whenever you visit http://website/cam, you get connected to http://192.168.0.168:80
$HTTP["url"] =~ "(^/cam/)" {
proxy.server = ( "" => (
"192.168.0.168:80" => # name
( "host" => "127.0.0.1",
"port" => 82
)
)
)
}
# URL Rewriting Proxy
#
$SERVER["socket"] == ":82" {
url.rewrite-once = ( "^/cam/(.*)$" => "/$1" )
proxy.server = ( "" => (
"192.168.0.168:82" => # name
( "host" => "192.168.0.168", # Set the IP address of 192.168.0.168
"port" => 80
)
)
)
}