Sergio Nuez Posted December 6, 2018 Share Posted December 6, 2018 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 More sharing options...
Richard Flather Posted December 14, 2018 Share Posted December 14, 2018 Sergio, Attached is script I wrote to run EMS as a service. Unzip it, and make the necessary changes to fit your environment. Link to comment Share on other sites More sharing options...
Fabio Goncalves Martins 2 Posted August 30, 2019 Share Posted August 30, 2019 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 More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now