Automic Workload Automation

Expand all | Collapse all

Automatic Starting of the Service Manager on RHEL7

  • 1.  Automatic Starting of the Service Manager on RHEL7

    Posted 02-12-2018 09:27 AM
    RHEL 6 uses init process to stop and start services when the system boots up to which I wrote an init script which statuses, starts, and stops the Service Manager on Linux Systems that houses agents.  With the init script I wrote I can type service uc4 start | stop | restart | status to manipulate the Service Manager process on RHEL6.  RHEL 7 did away with the init process in favor of systemd so my query is, does Automic have a systemd setup to control the Service Manager on RHEL7?


    Could you please check these links:
    https://community.automic.com/discussion/9728/start-up-scripts-on-rhel-7
    https://community.automic.com/discussion/9902

    There is a script example on the second post. You should check it and adapt it for your system.




  • 2.  Automatic Starting of the Service Manager on RHEL7

    Posted 02-12-2018 09:48 AM
    RHEL 7 did away with the init process in favor of systemd so my query is, does Automic have a systemd setup to control the Service Manager on RHEL7?

    So let me try to get this right.

    Your customer has a SysV init script and asked for a systemd script. You replicate the question here, but link to a thread where someone posts a systemd start script (what's being looked for), but of which the original poster herself says it's not working. And then a thread which has very good, working content, but unfortunately on SysV init scripts, which is totally not systemd.

    Hmmmmm I'm not so sure about this ...

    Either way, here's a post that asks the same question (again a question from Automic Support), to which someone responded with a working systemd script.

    Since that thread is in the wrong language though, here's the current version that is actually proven to work, each and every day for us:

    # cat /usr/lib/systemd/system/automic-ae-service-manager.service
    [Unit]
    Description=Automic Service Manager
    Requires=network-online.target
    After=network-online.target

    [Service]
    Type=simple
    EnvironmentFile=/etc/sysconfig/automic-ae
    ExecStart=/opt/ae/current/smgr/bin/ucybsmgr PROD
    IgnoreSIGPIPE=no
    User=aeadm
    RestartSec=8
    TimeoutStartSec=10
    TimeoutStopSec=15

    [Install]
    WantedBy=multi-user.target


    /etc/sysconfig/automic-ae contains simple Key=Value pairs, such as your $LD_LIBRARY_PATH.

    N.b. the environment file can NOT have variable expansions, only plain text Key=Value pairs.

    Best regards,