BLOG-OF-P.S.V.R

Created: 2011-07-15 03:59
Updated: 2017-04-12 10:01
License: gpl-3.0
c

README.md

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 send TERM 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.
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more