Starting as a daemon on systemd

  1. Log in as root.
  2. Change to the VersaLex installed directory.
  3. Create a unit file in /etc/systemd/system/VersaLexd.service with the following content.
    [Unit]
    Description=Start VersaLex daemon
    
    [Service]
    Type=oneshot
    ExecStart=/versalex/versalexd start
    ExecStop=/versalex/versalexd stop
    RemainAfterExit=yes
    
    [Install]
    WantedBy=multi-user.target  
  4. Run systemctl enable VersaLexd.service
  5. Verify the HRMHOME or VLTHOME variable in the VersaLexd script points to the VersaLex installed directory.
  6. Log out and reboot your system.
  7. Verify VersaLex is active.