hans@900: \subsection{Artifact-Server} hans@900: Aim/Task: see above hans@900: hans@900: \subsubsection*{Installation} hans@900: Running the server with its own user: hans@900: \verb+ # adduser artifacts+ hans@900: hans@900: Prepare infrastructure for logging hans@900: \begin{lstlisting} hans@900: cd /var/log hans@900: mkdir artifacts hans@900: chmod 770 artifacts hans@900: chmod g+s artifacts hans@900: \end{lstlisting} hans@900: hans@900: Integrate software of artefact-server into filesystem hans@900: cd /opt hans@900: tar xfvj /root/artifact-server-\$VERSION.tar.bz2 hans@900: ln -s artifact-server-\$VERSION artifact-server hans@900: cd artifact-server hans@900: hans@900: Setting the access rights hans@900: bin/setup.sh hans@900: hans@900: Configure connection to database hans@900: cd /opt/artefact-server hans@900: vim conf/arcsdeconnectionpool.properties hans@900: hans@900: in conf/arcsdeconnectionpool.properties do: hans@900: \begin{lstlisting} hans@900: server=xyz.server.com hans@900: username=guest hans@900: credentials=XYZ hans@900: port=5151 hans@900: database=esri_sde hans@900: \end{lstlisting} hans@900: hans@900: Configure address for finding the WMS-Server hans@900: hans@900: Adapt TCP-port of artefact-server hans@900: cd /opt/artefact-server hans@900: vim conf/conf.xml hans@900: hans@900: in conf.conf.xml: hans@900: adapt value of the element \verb+ rest-server/port+ (default: 8181) hans@900: hans@900: Integrate Artefact-Server in Init-Process of Operating System hans@900: mv /opt/artefact-server/bin/debian/artefact-server /etc/init.d/ hans@900: cd /etc/init.d hans@900: chmod +x artifact-server hans@900: update-rc.d artifact-server defaults hans@900: hans@900: FIXME: Setting up credential for signing project files. hans@900: hans@900: The installation of the artefact-server is finished. It can be tested hans@900: now. hans@900: hans@900: \subsubsection*{Test of the Installation} hans@900: Start the server: hans@900: /etc/init.d/artefact-server start hans@900: hans@900: 1. Operating System: Check if the process of the server is running hans@900: \verb+jps+ hans@900: hans@900: list of java processes: hans@900: \begin{lstlisting} hans@900: 19252 hans@900: 19509 Jps hans@900: 19441 App hans@900: \end{lstlisting} hans@900: hans@900: \verb+ cat /var/run/artefact-server+ hans@900: hans@900: Task: Compare the running process numbers hans@900: hans@900: 2. Network: Check if the artefact-server opens a TCP-port (default: 8181) hans@900: netstat -nltp hans@900: hans@900: Check for an entry like hans@900: tcp 0 0 127.0.0.1:8181 0.0.0.0:* LISTEN 18648/java hans@900: hans@900: 3. Artefact-Server ready for communication with client hans@900: wget -qO- http://localhost:8181/factories hans@900: hans@900: Task: Check for a XML-document describing a possible FIS hans@900: hans@900: hans@900: \subsubsection*{Deinstallation} hans@900: Stop server process: hans@900: /etc/init.d/artefact-server stop hans@900: hans@900: Remove integration in INIT-process: hans@900: rm -fi /etc/init.d/artefact-server hans@900: update-rc.d artefact-server remove hans@900: hans@900: Remove Binaries, Configuration, Caches, Artefact-Database: hans@900: rm -rfi /opt/artefact-server hans@900: rm -rfi /opt/artefact-server-\$VERSION hans@900: hans@900: Remove logging directories hans@900: rm -rfi /var/log/artifacts