Skip to content
Swiss federal authorities

Automatic start (installation as a service/daemon)

Overview🔗

The sedex-Client is distributed with the service wrapper YAJSW (Yet Another Java Service Wrapper, yajsw.sourceforge.net). The service wrapper allows the sedex-Client to be run as a Windows service or as a detached daemon process on Linux

The wrapper itself is stable for the following platforms:

  • Windows (32 and 64 bit)
  • Linux (32 and 64 bit)

The wrapper is in alpha stage for the following platforms:

  • Solaris
  • FreeBSD
  • Mac OS X

Other platforms like AIX can work too, but they are not tested.

Linux🔗

Note: Linux daemons are supported for System V and systemd (new as of version 6).

Stop any running standalone sedex-Client before installing the Linux daemon by executing:

<sedex_home>/bin/sedex-client-stop.sh.

To start the sedex Adapter automatically (for example after reboot), install the sedex Controller as a Linux daemon by executing:

<sedex_home>/bin/sedex-client-installDaemon.sh (System V)

or

<sedex_home>/bin/sedex-client-installDaemonD.sh (systemd)

A new Linux daemon will be created. This daemon (and with it the wrapped sedex-Client) will be started automatically after a reboot.

To check that the Linux daemon is configured correctly, execute

<sedex_home>/bin/sedex-client-runInConsole-withDaemonConfig.sh (press ctrl+c to quit).

You can also change the Linux daemon installation settings by editing <sedex_home>/service-wrapper/conf/service-wrapper.properties

To uninstall the Linux daemon, run

<sedex_home>/bin/sedex-client-uninstallDaemon.sh (System V)

or

<sedex_home>/bin/sedex-client-uninstallDaemonD.sh (systemd)

For more information about starting a Java program as a daemon process, see yajsw.sourceforge.net.

Windows🔗

Stop any running sedex standalone application before installing the Windows Service by executing:

<sedex_home>/bin/sedex-client-stop.bat

To start the sedex Adapter automatically (for example after reboot), install the sedex Controller as a Windows service by running the following as Administrator

<sedex_home>/bin/sedex-client-installWindowsService.bat

A new Windows service with the name “sedex-Client ” will be created. This service (and the wrapped sedex-Client) may be started/stopped manually in the Windows Service Manager application. Alternatively the service will be started automatically after a reboot.

To check that the service is configured correctly, execute:

<sedex_home>/bin/sedex-client-runInConsole-withWindowsServiceConfig.bat (press ctrl-c to quit).

You can also change the service installation settings by editing <sedex_home>/service-wrapper/conf/service-wrapper.properties

To uninstall the service, execute:

<sedex_home>/bin/sedex-client-uninstallWindowsService.bat

For more information about starting a Java program as a daemon process, see yajsw.sourceforge.net.