OF P.S.V.R
This is the source code of site OF P.S.V.R
- It is a blog engine written in C, as an experiment for in-mem caching of web applications.
- For more information about the code, Please review the article included inside the ofpsvr.sql file.
- You can use and modify this software freely under GNU General Public License.
INSTALL
First you need to adjust some constants in db_config.h (see db_config.h.sample
), after which,
$ make
$ sudo make install
$ mysql -u root -p
mysql> create database ofpsvr;
mysql> use ofpsvr;
mysql> source ofpsvr.backup.sql;
mysql> exit;
$ sudo ofpsvr
to see what is happening in the background,
$ tail -f /var/log/ofpsvr.log
TIPS FOR UBUNTU SYSTEMS
You probably need to
$ sudo apt-get install libmysqlclient-dev
$ sudo apt-get install libmicrohttpd-dev
$ sudo apt-get install libssl-dev
If you have any problems, feel free to send me mails to ask pmq2001 (at) gmail.com
Signals OF P.S.V.R (todo)
Process ofpsvr responds to these signals:
-
TTIN
increment the worker count by 1 -
TTOU
decrement the worker count by 1 -
TERM
sendTERM
to worker. Worker will attempt to finish then exit. -
USR2
restart workers and thus re-generate all cache -
USR1
restart workers and thus re-generate all cache in phases, a rolling restart. -
INT
equivalent of sending Ctrl-C. Will attempt to finish then exit.