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.
_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to