systemd DB2 StartUp/Shutdown service on Red Hat Enterprise Linux Server release 7.4 (Maipo)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello everybody,

I am DBA and trying to setup systemd service for DB2 V11 fix pack 2a (multiple instances).
I've spent quite a bit of time on this setup without success so far.
I was able to get "ExecStart" part to work, but system reboot is giving me troubles.
DB2 crashes since "ExecStop" for some reason is not executed.
Please find the contents of db2.service file below.

The help on this is greatly appreciated.

Regards


[Unit]
Description=DB2 StartUp-Shutdown
After=network.target
Before=shutdown.target reboot.target halt.target
Conflicts=shutdown.target

[Service]
Type=forking
RemainAfterExit=yes
User=achdut2
ExecStart=/bin/sh -c '/var/db2/home/achdut2/sqllib/adm/db2start'
ExecStop=/bin/sh -c '/var/db2/home/achdut2/sqllib/adm/db2stop force'
Restart=always
Environment="DB2INSTANCE=achdut2"

[Install]
WantedBy=multi-user.target


===================================
Please note the MUFG logo and name is a service mark of Mitsubishi UFJ Financial Group, Inc. (â??MUFGâ??) and may be used by it or other Group companies for marketing purposes, including MUFG Americas Holdings Corporation affiliates and subsidiaries. Lending, deposit, securities, investment banking, and other banking services are provided by banking and/or broker-dealer affiliates of MUFG, including, MUFG Bank, Ltd. (â??MUFG Bankâ??), MUFG Union Bank, N.A. (â??Union Bankâ??), MUFG Securities Americas Inc. (â??MUSAâ??), and MUFG Securities (Canada), Ltd. (â??MUS(CAN)â??). MUFG Bank is not an FDIC-insured bank.  MUB is an FDIC-insured bank. MUSA is a member of FINRA and SIPC.  MUS(CAN) is a member of IIROC and CIPF.

This message is intended for the named addressee(s) only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mis-transmission. If you receive this message in error, please delete it and all copies from your system, destroy any hard copies and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print or copy any part of this message if you are not the intended recipient. MUFG, its affiliates and subsidiaries reserve the right to monitor all electronic communications through their respective networks.   Any views expressed in this message are those of the individual sender and do not constitute investment advice or recommendation, except where the message expressly states otherwise and the sender is authorized to furnish the same.  MUFG (and its subsidiaries) shall (will) not be liable for the message if modified.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180524/d7c57669/attachment-0001.html>


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux