To configure the server to start automatically when the system boots, use the create-systemd-script utility to create a script, or create the script manually.
  1. Create the service unit configuration file in a temporary location, where "ds" is the user running the server.
    $ bin/create-systemd-script \
         --outputFile /tmp/ping-directory-proxy.service \
         --userName ds
  2. As a root user, copy the ping-directory-proxy.service configuration file into the /etc/systemd/system directory.
  3. To read the new configuration file, reload systemd.
    $ systemctl daemon-reload
  4. To start the server, run the start command.
    $ systemctl start ping-directory-proxy.service
  5. To configure the server to start automatically when the system boots, run the enable command.
    $ systemctl enable ping-directory-proxy.service
  6. Log out as root.

    To perform this task on an RC system, create the startup script with bin/create-rc-script and move it to the /etc/init.d directory.

    Note: Create symlinks to this script from the /etc/rc3.d directory (starting with an “S” to ensure that the server is started) and /etc/rc0.d directory (starting with a “K” to ensure that the server is stopped).