pki: cleanup: dos2unix

Change-Id: I2ca4f0e10057a86c4548432e46da0a5e47cc9fb5
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
pki: remove unused files

Setup.txt is of windows.
installCA_dev.sh is obsolete by new installer.

Change-Id: Ic1cfb80f349a0b30ffe828b8970758d7c9bf3c35
pki: cleanup: use .keep convention

Change-Id: I592145f93a7e40de8ae15be3dfdb666500b89200
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
pki: do not override ca database in packaging

ca database should be created when CreateCA.sh is executed, not by
packaging. As subsequent installations should not override these unless
the ca is recreated.

serial and database should have actually been in /var/lib, but for now
we keep them at /etc.

Change-Id: I288864dbfb2908d4159fdbd44724d4674a1f4eee
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine-service: cleanup pyflakes warnings

Change-Id: I2186d79e96aaf2789ee860e7e7e34a20d71e6287
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine-service: cleanup: merge check for running process

Change-Id: I20238c634c418029c669bdf2b4b77e329b39faa1
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine-service: rework start pid file handling

There is no reason to force user to explicit stop and start the service
in case pid file contains non running process.

Change-Id: I8d8a7f8f8b7f5941f447df3d279686b973b5c393
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine-service: recover from corrupted pid file

The case in which pidfile is empty is common.

Change-Id: I1b2a175cd0ef14bb6f60822f510059ee5be23c43
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine-service: use python daemon instead of own implementation

Change-Id: I6b533fbdbde47d8fdb62964d60aa22e98c1e57c3
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine-service: add options for wrappers

In order to be used at other environments, with their own init.d layout,

Add:
  --quiet
  --pidfile
  --foreground

Change-Id: I00d868fc51ec73800cae2eb24002feb933744851
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine-setup re-write using otopi

Change-Id: I4d5e3ac7927802326e324c9b98ada75b421638aa
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
Signed-off-by: Alex Lourie <alourie@redhat.com>