Il 17/08/2016 16:19, Gelpi Andrea ha scritto:
I'm tring to use policyd on a new centos 7.

To install I did:
yum install perl-Cache-FastMmap perl-Config-IniFiles perl-Net-CIDR

rpm -Uvh --nodeps
http://download.policyd.org/v2.1.x-201310261831/cluebringer-v2.1.x-201310261831.noarch.rpm


I have to use --nodeps because on Centos 7 mysql server is mariadb server.

Then I changed in /etc/cbpolicyd/clubringer.conf the line to connect to
mysql.

DSN=DBI:mysql:database=policyd:host=localhost
Username=root
Password="Some_password"

and the same modification I did in webui.conf
$DB_DSN="mysql:host=localhost;dbname=policyd";
$DB_USER="root";
$DB_PASS="Some_password";
$DB_TABLE_PREFIX="";

Now the web component is working and I could add everything I need.
If I add something directly on the DB i can see it on web.

But when I try to start policyd there are two kinds of errors.

Systemctl says the pid file could not be written. (I think it is a
permission problem).

The problem here is that the pid must be in /var/run and not in /var/run/cbpolicyd.


The stop command do nothing because killproc doesn't exist.
I look forward for a solution changing the command.

Using killall  solve partially the problem.
With systemctl stop cbpolicyd.service it works.
But service cbpolicyd stop end up with a message at the last line of the script. Cbpolicyd is ended anyway.


But in the log there is:

[CBPOLICYD] WARNING: Failed to connect to database: Error connecting to
database: Access denied for user 'root'@'localhost' (using password: YES)

Mysql log dont' say nothing at all.

Any Idea?

Thanks.



--
Gelpi ing. Andrea
--------------------------------------------------------------
It took the computing power of three C-64s to fly to the Moon.
It takes a 486 to run Windows 95. Something is wrong here.
--------------------------------------------------------------

_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org

Reply via email to