I have a service that takes between 1 minute and 30 seconds to start or to stop. I needs to be started after network service and needs to be stopped before network service.

It works well when trigerred directly on terminal with the commands below.

# systemctl start ibmbpm
# systemctl stop ibmbpm

I have a problem when I try to shutdown the computer. The shutdown is pretty fast (about 20 seconds), so I think it's not waiting my service to finish to shutdown the computer and in the logs I can see it's having problems to connect to a local interface on 8879 port. That's the reason why I'm thinking it's not waiting my service stop before stop network.

I can see the following error on my WebSphere(IBM BPM) logs:

Caused by: com.ibm.websphere.management.exception.ConnectorException: ADMC0016E: ADMC0016E: the system cannot create a soap connector to connect to host bpmpfs01.XXXXXX.XXX at port 8879.

Here is my systemd service file

Description=IBM Business Process Manager 8.5.7

ExecStart=/opt/IBM/ibmbpm start
ExecStop=/opt/IBM/ibmbpm stop


Is there a way to make it work correctly? I really appreciate any help.

  • Which OS, which systemd version? – Ortomala Lokni Jun 24 '17 at 9:06
  • @OrtomalaLokni it's Suse 12. Systemd 210. – Ranieri Mazili Jun 26 '17 at 11:49

Try to add Wants=network-online.target and After=network.target

Have a look at: https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.