Rocket U2 | UniVerse & UniData

 View Only
  • 1.  Configuring systemd for Unidata startup on Redhat 8

    Posted 08-15-2022 18:50
    Does anyone have a working recipe for starting/stopping Unidata when the system boots on Redhat 8?  Looks like it's as easy as creating an entry in /etc/systemd/system/unidata.service, but if someone has a working config they'd be willing to share that will save some experimentation :_)

    https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6

    It doesn't look to hard to do the basics of startud and stopud, but curious if anyone is having systemd restart ud when stopped?  That seems like a bad idea.

    Thanks for any advice!
    Ian

    ------------------------------
    Ian McGowan
    Principal Consultant
    Rocket Forum Shared Account
    ------------------------------


  • 2.  RE: Configuring systemd for Unidata startup on Redhat 8

    Posted 08-15-2022 19:28
    Ian,

    There is a Knowledge article for UniVerse with a script that looks like it can be edited for UniData - please see https://my.rocketsoftware.com/RocketCommunity/articles/Tech_Note/UniVerse-11-2-4-does-not-start-automatically-on-RHEL-7-1478612245090


    Regards

    JJ


    ------------------------------
    John Jenkins
    Thame, Oxfordshire
    ------------------------------



  • 3.  RE: Configuring systemd for Unidata startup on Redhat 8

    Posted 08-16-2022 00:06
    Thanks John, that's perfect, thanks so much!




  • 4.  RE: Configuring systemd for Unidata startup on Redhat 8

    Posted 10-21-2022 12:29
    I've followed the instructions to the letter, everything seems to be in the proper place, but it does not work.

    Any troubleshooting hints? RHEL 8 and Universe 11.3

    ------------------------------
    Scott Clift
    CAC Financial Corp
    US
    ------------------------------



  • 5.  RE: Configuring systemd for Unidata startup on Redhat 8

    Posted 10-28-2022 11:56
    Scott,

    Does this help ata l?

    https://www.howtogeek.com/devops/how-to-add-your-own-services-to-systemd-for-easier-management/

    Please watch for system environment variable settings as well - user local settings will not be applied..

    Regards,

    JJ

    ------------------------------
    John Jenkins
    Thame, Oxfordshire
    ------------------------------



  • 6.  RE: Configuring systemd for Unidata startup on Redhat 8

    PARTNER
    Posted 10-30-2022 19:06
    We have been using systemd to start/stop UV for a number of years.
    The TechNote @John Jenkins linked is an exact copy of what we use, so it does work.

    Can you post the output from this command:

    systemctl status universe.service --full


    ------------------------------
    Gregor Scott
    Software Architect
    Pentana Solutions Pty Ltd
    Mount Waverley VIC AU
    ------------------------------



  • 7.  RE: Configuring systemd for Unidata startup on Redhat 8

    Posted 12-16-2022 12:07
    Does anyone have a working example of this in Unidata?  I don't see an attached file in that thread above.

    ------------------------------
    John Thompson
    Precision Solutions, Inc.
    North port FL US
    ------------------------------



  • 8.  RE: Configuring systemd for Unidata startup on Redhat 8

    Posted 08-09-2023 12:53

    here is the output:

    root@cubsserver2 ~]# systemctl status universe.service --full
    ● universe.service - Rocket UniVerse Service
       Loaded: loaded (/etc/systemd/system/universe.service; enabled; vendor preset: disabled)
       Active: failed (Result: exit-code) since Wed 2023-08-09 11:43:07 CDT; 7min ago
      Process: 41557 ExecStart=/etc/rc.d/init.d/uv.rc start (code=exited, status=203/EXEC)

    Aug 09 11:43:07 cubsserver2.localdomain systemd[1]: Starting Rocket UniVerse Service...
    Aug 09 11:43:07 cubsserver2.localdomain systemd[1]: universe.service: Control process exited, code=exited status=203
    Aug 09 11:43:07 cubsserver2.localdomain systemd[1]: universe.service: Failed with result 'exit-code'.
    Aug 09 11:43:07 cubsserver2.localdomain systemd[1]: Failed to start Rocket UniVerse Service.



    ------------------------------
    Scott Clift
    CAC Financial Corp
    US
    ------------------------------



  • 9.  RE: Configuring systemd for Unidata startup on Redhat 8

    Posted 08-09-2023 13:15
    Edited by John Jenkins 08-09-2023 13:21

    Scott,

    On UniVerse I'd  check the license status as root ('su' is fine):

    # cd `cat /.uvhome`; bin/uvregen -z

    Please note that  these are backward single quotes ` and not '

    For UniData, set and export the environment variables UDTHOME and LANG and also set PATH to include the UniData bin directory, 'cd' to the UniData home directory and run bin/confcmd -z

    Otherwise check the root level files exist in case the have been removed:

    /.unishared

    /.uvhome (UniVerse only)

    /.uvdls (UniVerse only)

    For UniData it's a little different for the root level files as UniData allows concurrent installations whereas UniVerse does not. As well as the UniData root level files (which includes /.unishared), check the UDTHOME, PATH and LANG environment variables are correctly set

    Was there a system change or housekeeping activity on  a previously working system that might have caused this? e.g.

    1. Moving a VM
    2. Copying a VM (note: a separate UniVerse or UniData license and license number is required for each installed instance, so moving is fine, but if copying you will need another license)
    3. File housekeeping / removal. I've seen the root level files over-enthusiastically removed many times.
    4. Change in user or file permissions -  including file ACLs for UniVerse 12 or later.

    If this system has not previously worked then permissions either on installation  or startup and licensing are favourite.

    Regards

    JJ



    ------------------------------
    John Jenkins
    Thame, Oxfordshire
    ------------------------------



  • 10.  RE: Configuring systemd for Unidata startup on Redhat 8

    PARTNER
    Posted 08-10-2023 16:53
    Edited by Chris Turner 08-10-2023 19:00

    Hi,

    Withdrawn, missed earlier posts

    I noticed that the post subject relates to UniData startup but Scott's systemd is for UniVerse. Scott, could you please post the systemd service definition, it may have UniVerse remnants in it.



    ------------------------------
    Chris Turner Turner
    Services Manager
    Meier Business Systems PTY LTD
    Carnegie VIC AU
    ------------------------------