I made a little .service file to call our DBA's scripts to shutdown / startup DB2 (they do lots more in there than just the db2start / db2stop)
It looks like this [Unit] Description=Our DB2 After=syslog.target network-online.target local-fs.target boksm.service Wants=syslog.target network-online.target local-fs.target boksm.service [Service] Type=simple ExecStart=/db2ws/db2tpsd1/dba/scripts/pqc/db2_startup.ksh TimeoutStartSec=1200 ExecStop=/db2ws/db2tpsd1/dba/scripts/pqc/db2_shutdown.ksh TimeoutStopSec=1200 RemainAfterExit=true TasksMax=infinity [Install] WantedBy=multi-user.target It all works perfectly fine on both just a stop and start of the service and on shutdown and boot. But on the shutdown these messages appear when the su's to the dba instances are called. Jul 06 10:26:47 cdzed00a4123 su[30207]: (to db2tpsd1) root on none Jul 06 10:26:49 cdzed00a4123 su[30207]: pam_systemd(su-l:session): Failed to create session: Resource deadlock avoided Jul 06 10:27:24 cdzed00a4123 db2_shutdown.ksh[30016]: INFO: /db2ws/db2tpsd1/dba/scripts/pqc/db2_auto_pqc.ksh returned RC=0 for shutdown of instance db2tpsd1 Jul 06 10:27:24 cdzed00a4123 db2_shutdown.ksh[30016]: INFO: db2_shutdown.ksh Calling /db2ws/db2tpsd1/dba/scripts/pqc/db2_auto_pqc.ksh for db2tpsd2 But the su does appear to be happening... What is this "session" that it is complaining about? Obviously something else went down that it wanted, but what?? Marcy This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/
