Configuring the automatic startup/shutdown procedure for Control-M/Server on UNIX

This procedure describes how to configure the automatic startup procedure for Control-M/Server on RedHat 7, Oracle Linux 7, and SUSE Linux Enterprise Server 12.

To configure the automatic startup procedure for Control-M/Server:

  1. Log in as root.
  2. Navigate to the following to location:

    /etc/systemd/system/

  3. Create a new unit service file with 644 permissions.

    The extension must be .service.

    EXAMPLE: CtmServer.service

  4. Open the file and type the following:

    [Unit]

    Description=Control-M Server

    After=systemd-user-sessions.service multi-user.target network.target

    [Service]

    ExecStart=/bin/sh -c [server_home_dir]/ctm_server/data/rc.<account name>

    Type=forking

    RemainAfterExit=yes

    ExecStop=/usr/bin/su - <account name> -c '[server_home_dir]/ctm_server/scripts/shut_ca ; [server_home_dir]/ctm_server/scripts/shut_ctm -CA; sleep 10 ; [server_home_dir]/ctm_server/scripts/shutdb;'

    [Install]

    WantedBy=multi-user.target

  5. Save the file.
  6. From a command line, run the following commands:
  7. Restart the Control-M/Server computer.

Parent Topic

Control-M post installation procedures on UNIX