Skip to main content
Ian McGowan
Participating Frequently
Aug 15, 2022 6:50 PM UTC

Configuring systemd for Unidata startup on Redhat 8

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
------------------------------

    9 replies

    John Jenkins
    Participating Frequently
    Aug 15, 2022 7:28 PM UTC
    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
    ------------------------------
    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
    ------------------------------
    JJ
    Ian McGowan
    Participating Frequently
    Aug 16, 2022 12:06 AM UTC
    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
    ------------------------------
    Thanks John, that's perfect, thanks so much!
    New Participant
    Oct 21, 2022 12:14 PM UTC
    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
    ------------------------------
    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
    ------------------------------
    John Jenkins
    Participating Frequently
    Oct 28, 2022 11:56 AM UTC
    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
    ------------------------------
    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
    ------------------------------
    JJ
    Gregor Scott
    Participating Frequently
    Oct 30, 2022 7:06 PM UTC
    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
    ------------------------------
    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
    ------------------------------
    New Participant
    Dec 16, 2022 9:27 AM UTC
    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
    ------------------------------
    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
    ------------------------------
    New Participant
    Aug 9, 2023 12:53 PM UTC
    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
    ------------------------------

    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
    ------------------------------
    John Jenkins
    Participating Frequently
    Aug 9, 2023 1:15 PM UTC

    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
    ------------------------------

    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
    ------------------------------

    JJ
    Chris Turner
    New Participant
    Aug 10, 2023 4:53 PM UTC

    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
    ------------------------------

    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
    ------------------------------