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 GmbH
How to install PicApport as a Windows Service
 
We have successfully tested with an oracle 1.8.0_11-b12 JVM
Should also work with 1.7 Oracle or OpenJDK
 
Unzip PicApportServiceExample.zip in the following folder-structure
 
C:\PicApportService\ReadMe-PicapportAsService.txt    --> this file
C:\PicApportService\picapport-headless_v6.1.00.jar   --> at least version 3.2.1 January 26 2015
 
C:\PicApportService\.picapport\
C:\PicApportService\.picapport\picapport.properties  --> edit this file if photos are stored in a different location
C:\PicApportService\photos\                          --> example directory where fotos are stored
 
C:\PicApportService\ApacheLogs                       --> Logfiles of Apache willl be stored here
C:\PicApportService\PicApportEnv.cmd                 --> Used by other .cmd files to configure Environment
C:\PicApportService\ApachePrunsrvInstall.cmd         --> Sample batchfile to install service
C:\PicApportService\ApachePrunsrvUninstall.cmd       --> Sample batchfile to uninstall service
C:\PicApportService\ApachePrunmgrEdit.cmd            --> Sample batchfile to view/edit service data
 
C:\PicApportService\prunmgr.exe                      --> download from http://commons.apache.org/proper/commons-daemon/procrun.html
C:\PicApportService\prunsrv.exe                      --> download from http://commons.apache.org/proper/commons-daemon/procrun.html 
 
Steps to install and verify a PicApport Service
 
1. Make sure Java Runtime version is available
2. Create a dirctory structure as described above or similar
3. Download prunmgr and prunsrv as described above
4. Edit C:\PicApportService\.picapport\picapport.properties if you have a different photo-directory
5. Change to directory  C:\PicApportService
6. Run C:\PicApportService\ApachePrunsrvInstall.cmd
7. Check if service has been installed with windows system console
8. To start the service enter: net start PicApport
9. To stop the service enter: net stop PicApport
 
Important:
==========
Try at least one time to stop the service and check the
picapport logfiles in C:\PicApportService\.picapport\logfiles
Check the log files for successful shutdown like:
 
......
MSG  @ 17:31:24.698 PicApport.shutdown initiated...
.........
MSG  @ 17:31:24.806 PicApport.shutdown completed.