Installing Funcd
General information
Before installing a new Funcd version you have to uninstall existing Funcd installations (see Update Product 360 - Media Manager). The Product 360 - Media Manager Funcd is a service, or a daemon, which executes the tasks requested by client modules. The commands used by the Funcd include the following, some of which are platform-specific:
layout (Sun Solaris with Helios OPI support)
convert (ImageMagic for all supported platforms)
exiftool (Windows)
Platform-specific copy commands (with dt-tools in the case of Helios support)
The client modules can communicate with the the Funcd via IP. Otherwise, the Funcd monitors a platform-specific input directory. The archive PIM_<Version>_ThirdPartySoftware.zip contains Funcd versions for the following platforms:
Linux (funcd.linux)
Windows 2008 R2 Server /Windows 2012 Server (funcd.nt)
Further information on setting up your Heiler Media Manager Funcd can be found in Activating Product 360 - Media Manager, defining volumes & setting up Funcd. Depending on the set debug level, the Funcd maintains a log with different levels of detail:
0 is the lowest debug level: No log is maintained.
20 is the highest debug level: An extremely detailed log is maintained.
The log file can be found in one of the following directories:
[…]/opastool/funcd
[…]/opastool/funcdpip1
[…]/opastool/funcdpip2
Unless you make a different setting, the Funcd cancels any process with a timeout after 600 seconds with no response.
File server Funcd
Macintosh OSX and Linux
The Macintosh OSX or Linux packages are not part of the release package. You can get more information about these packages on request.
3rd party tools
Due to license restrictions GhostScript, ICC profiles, FFmpeg and MEncoder are not shipped with Informatica Media Manager.
Windows
The folder …\Volume0\opastool\funcd is monitored by this Funcd. (It is recommended to use UNC paths.)
The procedure for installing the Informatica Media Manager Funcd for file servers on Windows Server is as follows:
Run the corresponding setup file in the directory funcd.nt on the third-party software CD: Setup_FS_Funcd.exe.
Click on Next.
Enter the path to the directory where the Funcd will be installed.
Click on Next.
The list of components that will be installed is displayed.
Click on Next.
Select the folder to be monitored, see note above.
Click on Next.
Configure the settings for TCP port, timeout, debug level and count of parallel processes. (It is not recommended to change the default values.) Please note the port, you will need it for the setting in the Administration module, see Activating Product 360 - Media Manager, defining volumes & setting up Funcd.
Click on Next.
Select the Start menu folder.
Click on Next.
Check that the installation routine has correctly identified the environment.
If all the information is correct, click on Install.
Exit the program.
The installation is complete.
Linux
Prerequisites
Volume0 and BufferVolume from the main DVD must be residing in a share on the Linux server
root access
ImageMagick must be installed
ExifTool must be installed
Correct archive for your kernel version
Available Funcd archive
3RD_PARTY_CD/funcd.linux/RHEL_7.0/lnx_funcd_64_RH7.tgz
Step by step manual
Create a home directory for the Funcd
Create Funcd home$mkdir/opt/IMMfuncdUnpack the Funcd archive in /opt/IMMfuncd
Unpack the Funcd archive$cd/opt/IMMfuncd$cplnx_funcd_64_RH7.tgz .$tar-xzf lnx_funcd_64_RH7.tgzSet access privileges for the complete funcd content
Set privileges$chmod-R 755/opt/IMMfuncdMove tools to Volume 0
Create {{tools}} folder$mkdir[...]/Volume0/opastool/funcd$mvtools [...]/Volume0/opastool/funcd$chmod755 [...]/Volume0/opastool/funcd/tools/*.sh$chmod755 [...]/Volume0/opastool/funcd/tools/convert$chmod755 [...]/Volume0/opastool/funcd/tools/java/bin/*Create links to ImageMagick in the tools folder
ImageMagick links$ln-s [path to ImageMagick]/convert[...]/Volume0/opastool/funcd/tools/convert2$ln-s [path to ImageMagick]/identify[...]/Volume0/opastool/funcd/tools/identify$ln-s [path to ImageMagick]/composite[...]/Volume0/opastool/funcd/tools/composite$ln-s [path to ImageMagick]/mogrify[...]/Volume0/opastool/funcd/tools/mogrifyImageMagick location
Under Red Hat Enterprise Linux 7 the default location of ImageMagick is /usr/bin.
Create links to tar and gzip in the tools folder
{{tar}} and {{gzip}} links$ln-s [path totar]/tar[...]/Volume0/opastool/funcd/tools/gtar$ln-s [path togzip]/gzip[...]/Volume0/opastool/funcd/tools/gziptar and gzip locations
Under Red Hat Enterprise Linux 7 the default location of tar and gzip is /bin.
Create a link to Exiftool in the tools folder
Exiftool link$ln-s [path to exiftool]/exiftool[...]/Volume/oapstool/funcd/tools/exiftoolExiftool location
Under Red Hat Enterprise Linux 7 the ExifTool setup places ExifTool in /usr/local/bin by default.
Create the Funcd init script
Create {{init}} script$touch[path to init scripts]/IMMfuncdinit scripts location
Under Red Hat Enterprise Linux 7 the init scripts reside in /etc/init.d
Open the init script in an editor, e.g. nano
Open {{init}} script$ nano [path to init scripts]/IMMfuncdCopy & paste the following script in the editor and adapt the PORT, CLIENTS,DEBUGLEVEL and the WORKDIR to match your paths
Funcd {{init}} script#!/bin/bashWORKDIR=[...]/Volume0/opastool/funcdBASEDIR=/opt/IMMfuncdPORT=11000CLIENTS=10DEBUGLEVEL=20PROG=funcdOPTS="-d $WORKDIR -V $DEBUGLEVEL -p $PORT -C $CLIENTS"FUNCD_HOME=$BASEDIRexportFUNCD_HOME# Checking directories and executableif[ ! -d ${BASEDIR} ];thenecho"ERROR: Base directory '${BASEDIR}' doesn't exist"exit1fiif[ ! -x ${BASEDIR}/${PROG} ];thenecho"ERROR: Executable '${BASEDIR}/${PROG}' not found"exit1fiif[ ! -d ${WORKDIR} ];thenecho"ERROR: Working directory '${WORKDIR}' doesn't exist"exit1fi# Checking required toolsif[ ! -x ${WORKDIR}/tools/convert];thenecho"ERROR: Executable '${WORKDIR}/tools/convert' not found"exit1fiif[ ! -x ${WORKDIR}/tools/identify];thenecho"ERROR: Executable '${WORKDIR}/tools/identify' not found"exit1fiif[ ! -x ${WORKDIR}/tools/composite];thenecho"ERROR: Executable '${WORKDIR}/tools/composite' not found"exit1fiif[ ! -x ${WORKDIR}/tools/mogrify];thenecho"ERROR: Executable '${WORKDIR}/tools/mogrify' not found"exit1fiif[ ! -x ${WORKDIR}/tools/gtar];thenecho"ERROR: Executable '${WORKDIR}/tools/gtar' not found"exit1fiif[ ! -x ${WORKDIR}/tools/gzip];thenecho"ERROR: Executable '${WORKDIR}/tools/grip' not found"exit1fiif[ ! -x ${WORKDIR}/tools/exiftool];thenecho"ERROR: Executable '${WORKDIR}/tools/exiftool' not found"exit1fi# Start and stop functionsstart() {echo"Starting '$BASEDIR/$PROG $OPTS' ..."cd$BASEDIR && ./$PROG $OPTSRETVAL=$?if[ $RETVAL -eq0 ];thenecho" started"elseecho" Failure"fiechoreturn$RETVAL}stop() {echo"Stopping '$PROG' ..."killall"$PROG"RETVAL=$?if[ $RETVAL -eq0 ];thenecho" stopped"elseecho" Failure"fiechoreturn$RETVAL}restart() {stopstart}case"$1"instart)start;;stop)stop;;restart)restart;;*)echo$"Usage: $0 {start|stop|restart}"RETVAL=1esacexit$RETVALSave the init script
Set access privileges for the init script
{{init}} access privileges$chmod755 [path to init scripts]/IMMfuncdTest the script and check the output
Start the Funcd
Start the Funcd$ [path to init scripts]/IMMfuncdstartStarting'[BASEDIR]/funcd -d [WORKDIR] -V [DEBUGLEVEL] -p [PORT] -C [CLIENTS]'...Parallel Funcd Linux Version [version number](C) 2002-2014forHeiler Software AG by STORE! Media EnginieeringstartedCheck if the Funcd process is there
Check process$ps-e |grepfuncd15842 pts/200:00:00 funcdDiffering values
The values shown here are just an example. Most likely they will be different on your system.
Stop the Funcd
Stop the Funcd$ [path to init scripts]/IMMfuncdstopStopping'funcd'...stopped
Link the init script to the desired run levels
Run level links$ln-s [path to init scripts]/IMMfuncd[path to run level scripts]/rc[run level number].d/S90IMMfuncdRun level location
Under Red Hat Enterprise Linux 7 the run level script links {{/etc/rc[run level number].d
If you do not want to reboot your system, start the Funcd now
Start the Funcd$ [path to init scripts]/IMMfuncdstartStarting'[BASEDIR]/funcd -d [WORKDIR] -V [DEBUGLEVEL] -p [PORT] -C [CLIENTS]'...Parallel Funcd Linux Version [version number](C) 2002-2015forHeiler Software AG by STORE! Media Engineeringstarted
Hints
Setting up ImageMagick under Red Hat Enterprise Linux 7
Install ImageMagick using the built-in package manager yum is the easiest way to set up both of them.
$ yum install ImageMagickFuncd port and the firewall
Remember to add a rule to your firewall that allows communication on the used Funcd port.
Second Pipeline Funcd (optional)
The folder …\Volume0\opastool\funcdpip1 is monitored by this Funcd. (It is recommended to use UNC paths.)
The procedure for installing the Heiler Media Manager second pipeline Funcd on Windows 2008 R2 Server/2012, XP or 7 is as follows:
Run the corresponding setup file in the directory funcd.nt on the third-party software CD: Setup_PIP_Funcd.exe.
Click on Next.
Enter the path to the directory where the Funcd will be installed.
Click on Next.
The list of components that will be installed is displayed.
Click on Next.
Select the folder to be monitored, see note above.
Click on Next.
Configure the settings for TCP port, timeout, debug level and count of parallel processes. (It is not recommended to change the default values.) Please note the port, you will need it for the setting in the Administration module, see Activating Product 360 - Media Manager, defining volumes & setting up Funcd.
Click on Next.
Select the Start menu folder.
Click on Next.
Check that the installation routine has correctly identified the environment.
If all the information is correct, click on Install.
Exit the program.
The installation is complete.