Installation of PicApport as a Windows-Service
This site is not intended for beginners
It is possible to start the PicApport Server as a Windows-Service (Daemon). The following programs Of the Apache Commons Project are required:
- prunmgr.exe
- prunsrv.exe
Download these two programs from: http://commons.apache.org/proper/commons-daemon/procrun.html
For simplicity, we have packed everything you need in a zip file (PicApportServiceExample.zip) . Download the zip file and unpack its contents to a directory. E.g. C:\PicApportService.
Further explanation can be found then in the file:
ReadMe-PicapportAsService.txt
(c) 2016 Contecon Software GmbHHow to install PicApport as a Windows ServiceWe have successfully tested with an oracle 1.8.0_11-b12 JVMShould also work with 1.7 Oracle or OpenJDKUnzip PicApportServiceExample.zip in the following folder-structureC:\PicApportService\ReadMe-PicapportAsService.txt --> this fileC:\PicApportService\picapport-headless_v6.1.00.jar --> at least version 3.2.1 January 26 2015C:\PicApportService\.picapport\C:\PicApportService\.picapport\picapport.properties --> edit this file if photos are stored in a different locationC:\PicApportService\photos\ --> example directory where fotos are storedC:\PicApportService\ApacheLogs --> Logfiles of Apache willl be stored hereC:\PicApportService\PicApportEnv.cmd --> Used by other .cmd files to configure EnvironmentC:\PicApportService\ApachePrunsrvInstall.cmd --> Sample batchfile to install serviceC:\PicApportService\ApachePrunsrvUninstall.cmd --> Sample batchfile to uninstall serviceC:\PicApportService\ApachePrunmgrEdit.cmd --> Sample batchfile to view/edit service dataC:\PicApportService\prunmgr.exe --> download from http://commons.apache.org/proper/commons-daemon/procrun.htmlC:\PicApportService\prunsrv.exe --> download from http://commons.apache.org/proper/commons-daemon/procrun.html Steps to install and verify a PicApport Service1. Make sure Java Runtime version is available2. Create a dirctory structure as described above or similar3. Download prunmgr and prunsrv as described above4. Edit C:\PicApportService\.picapport\picapport.properties if you have a different photo-directory5. Change to directory C:\PicApportService6. Run C:\PicApportService\ApachePrunsrvInstall.cmd7. Check if service has been installed with windows system console8. To start the service enter: net start PicApport9. To stop the service enter: net stop PicApportImportant:==========Try at least one time to stop the service and check thepicapport logfiles in C:\PicApportService\.picapport\logfilesCheck the log files for successful shutdown like:......MSG @ 17:31:24.698 PicApport.shutdown initiated............MSG @ 17:31:24.806 PicApport.shutdown completed. |