INIT script in rhel 7:server does not stop
Hi,
I made an init script(hybris.service) for hybris on RHEL7 under /usr/lib/systemd/system
------------------------------------------------------------------
[Unit]
Description=Hybris Server
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
ExecStart=/app/hybris5.4/hybris/bin/platform/hybrisserver.sh start
ExecStop=/app/hybris5.4/hybris/bin/platform/hybrisserver.sh stop
SuccessExitStatus=143
Type=simple
User=hybrisadmin
Group=hybrisadmin
TimeoutSec=300
[Install]
WantedBy=multi-user.target
-------------------------------------------------------------------
When I execute the script it runs successfully and /var/log/messages are updated with the
May 20 12:46:57 xxxxxxxx systemd: Stopped Hybris Server
message but hybris server does not stop.
Please help me with the resolution/next steps.
Thanks in advance...!!!!
I am a newbie..any help will be greatly appreciated
Last edited by shazgaurav; 05-20-2015 at 09:51 AM.
|