Jump to content
We have recently updated our Privacy Statement, available here ×

Linux Operating Systems systemctl doesnt start EMS at boot of system.


Sergio Nuez

Recommended Posts

I configured systemsctl to start EMS at boot system, but when start/reboot it doesnt start.

My commands were:

1. I created "ems.service" file

[unit]

Description=TIBCO EMS

After=syslog.target

[service]

Type=forking

ExecStart=/bin/sh -c "cd /home/ec2-user/tibco/ems/8.4/bin ; ./tibemsd64 -config /home/ec2-user/TIBCO_HOME/ems/tibemsd.conf &"

[install]

WantedBy=multi-user.target

2. I reloaded systemctl daemon

$ sudo systemctl daemon-reload

3. I started "ems.service"

$ sudo systemctl start ems.service

4. I enabled "ems.service"

$ sudo systemctl enable ems.service

5. I rebooted operating system.

$ sudo reboot

EMS doesnt start at boot. Manually those scripts/commands work fine.

I installed EMS software with a non-root user.

Can anybody help me with ideas or scripts to start EMS automatically Thanks in advanced.

Link to comment
Share on other sites

  • 2 weeks later...
  • 8 months later...

I'm new to Tibco, but I have 18+ years of experience with Linux. I have fixed your file, I hope it helps you and others.

[vagrant@tibco-ems ~]$ sudo cat /etc/systemd/system/ems.service

[unit]

Description=TIBCO EMS

After=syslog.target

[service]

Type=simple

User=vagrant

Group=vagrant

Environment=EMS_HOME=/opt/tibco/ems/8.5

WorkingDirectory=/opt/tibco/ems/8.5/samples/config/

ExecStart=/opt/tibco/ems/8.5/bin/tibemsd64 -config /opt/tibco/ems/8.5/samples/config/tibemsd.conf

[install]

WantedBy=multi-user.target

--------------------------------------------------------------------

[vagrant@tibco-ems ~]$ sudo systemctl daemon-reload

[vagrant@tibco-ems ~]$ sudo systemctl restart ems

[vagrant@tibco-ems ~]$ sudo systemctl status ems

ems.service - TIBCO EMS

Loaded: loaded (/etc/systemd/system/ems.service; disabled; vendor preset: disabled)

Active: active (running) since Fri 2019-08-30 14:25:00 UTC; 4s ago

Main PID: 18301 (tibemsd64)

Tasks: 29

CGroup: /system.slice/ems.service

18301 /opt/tibco/ems/8.5/bin/tibemsd64 -config /opt/tibco/ems/8.5/samples/config/tibemsd.conf

Aug 30 14:25:00 tibco-ems tibemsd64[18301]: 2019-08-30 14:25:00.364 Server name: 'EMS-SERVER'.

Aug 30 14:25:00 tibco-ems tibemsd64[18301]: 2019-08-30 14:25:00.364 Storage Location: 'datastore'.

Aug 30 14:25:00 tibco-ems tibemsd64[18301]: 2019-08-30 14:25:00.364 Routing is disabled.

Aug 30 14:25:00 tibco-ems tibemsd64[18301]: 2019-08-30 14:25:00.364 Authorization is disabled.

Aug 30 14:25:00 tibco-ems tibemsd64[18301]: 2019-08-30 14:25:00.364 The server will attempt to trace warnings about destinations that a...essages.

Aug 30 14:25:00 tibco-ems tibemsd64[18301]: 2019-08-30 14:25:00.364 Set server properties 'large_destination_memory' and 'large_destina...esholds.

Aug 30 14:25:00 tibco-ems tibemsd64[18301]: 2019-08-30 14:25:00.377 Accepting connections on tcp://tibco-ems/[::]:7222.

Aug 30 14:25:00 tibco-ems tibemsd64[18301]: 2019-08-30 14:25:00.377 Accepting connections on tcp://tibco-ems/0.0.0.0:7222.

Aug 30 14:25:00 tibco-ems tibemsd64[18301]: 2019-08-30 14:25:00.377 Recovering state, please wait.

Aug 30 14:25:00 tibco-ems tibemsd64[18301]: 2019-08-30 14:25:00.387 Server is active.

Hint: Some lines were ellipsized, use -l to show in full.

[vagrant@tibco-ems ~]$

Link to comment
Share on other sites

×
×
  • Create New...