Hi,
I am trying to do a systemd (Unit file script) to launch dsmcad:


[Unit]
Description=Tivoli Storage Manager Client
After=network.target

[Service]
Type=oneshot
ExecStart=/usr/bin/dsmcad
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target


Would that be OK?
Because as you can see here, MAIN PID an actuall PID doesn't match.

# systemctl status dsmcad.service
dsmcad.service - Tivoli Storage Manager Client
   Loaded: loaded (/etc/systemd/system/dsmcad.service; enabled)
   Active: active (exited) since Wed 2016-09-28 11:55:23 CEST; 5h 22min ago
 Main PID: 2266 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/dsmcad.service
           └─2475 /usr/bin/dsmcad


 # ps aux | grep dsmc
root 2475 0.0 0.0 299700 10548 ? Sl 11:55 0:00 /usr/bin/dsmcad

I would apreciate if anyone has an example

Cheers!

--
Josep Manel Andrés (josep.and...@bsc.es)
Operations - Barcelona Supercomputing Center
C/ Jordi Girona, 31  http://www.bsc.es
08034 Barcelona, Spain Tel: +34-93-405 42 14
e-mail: syst...@bsc.es Fax: +34-93-413 77 21
-----------------------------------------------

WARNING / LEGAL TEXT: This message is intended only for the use of the
individual or entity to which it is addressed and may contain
information which is privileged, confidential, proprietary, or exempt
from disclosure under applicable law. If you are not the intended
recipient or the person responsible for delivering the message to the
intended recipient, you are strictly prohibited from disclosing,
distributing, copying, or in any way using this message. If you have
received this communication in error, please notify the sender and
destroy and delete any copies you may have received.

http://www.bsc.es/disclaimer

Reply via email to