Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create a new service unit file at /etc/systemd/system/dlm.service with content:

    Code Block
    languagetext
    titledlm.service
        [Unit]
        Description=Uniface DLM services
        After=network.target
    
        [Service]
        Type=oneshot
        ExecStart=/opt/Compuware/dlm/Linux/amd64/cpwr -start
        ExecStop=/opt/Compuware/dlm/Linux/amd64/cpwr -stop
        SuccessExitStatus=0 1
        TimeoutStartSec=0
        RemainAfterExit=yes
    
        [Install]
        WantedBy=default.target
    
    

    Note: change the path to the cpwr process name to your actual path if it deviates from the default.


  2. make process executable

    Code Block
    languagebash
     # chmod 755 dlm.service
  3. Reload the systemd process to consider newly created dlm.service

    Code Block
    languagebash
    # systemctl daemon-reload
  4. Enable the service

    Code Block
    languagebash
    # systemctl enable dlm.service
  5. Test systemctl start

    Code Block
    languagebash
        # systemctl start dlm
        # ps -ef | grep cpwr
  6. Test systemctl stop

    Code Block
    languagebash
        # systemctl stop dlm
        # ps -ef | grep cpwr
  7. Reboot system to test

    Code Block
    languagebash
        # reboot
        # ps - ef | grep cpwr


Action Button
linkLicensing Technical Information
text<< DLM Technical Information