diff --git a/tsm7-client/files/dsmc b/tsm7-client/files/dsmc new file mode 100755 index 0000000000000000000000000000000000000000..b72e0016d32931e12ab3b74dd6daa203cc6fe268 --- /dev/null +++ b/tsm7-client/files/dsmc @@ -0,0 +1,9 @@ +#!/bin/bash + +export LD_LIBRARY_PATH="/opt/tivoli/tsm/client/ba/bin:/opt/tivoli/tsm/client/api/bin:/opt/tivoli/tsm/client/api/bin64/:/usr/local/ibm/gsk8/lib/:/usr/local/ibm/gsk8_64/lib64/:" +export LANG="en_US.utf-8" +export LC_CTYPE="en_US.utf-8" + +exec /usr/bin/dsmc $@ + + diff --git a/tsm7-client/files/dsmc.service b/tsm7-client/files/dsmc.service index 3c1a82993a03bc0ec855613a850becf990c89232..d431f7d6c060bd9fc4d53aec15d2da7060520afc 100644 --- a/tsm7-client/files/dsmc.service +++ b/tsm7-client/files/dsmc.service @@ -3,7 +3,7 @@ Description=Tivoli Storage Manager Sheduler Documentation=https://doc.itc.rwth-aachen.de/display/BURS/Home [Service] -ExecStart=/bin/sh -c "LANG=en_US.utf-8 LC_CTYPE=en_US.utf-8 exec /usr/bin/dsmc sched" +ExecStart=/usr/bin/local/dsmc sched PIDFile=/var/run/dsmcshed.pid [Install] diff --git a/tsm7-client/tasks/main.yml b/tsm7-client/tasks/main.yml index b4e968d2399d04b464bf2c2418f3dceea351ffa7..bc0195348b26922c8662273cb2157396ec11e046 100644 --- a/tsm7-client/tasks/main.yml +++ b/tsm7-client/tasks/main.yml @@ -62,9 +62,16 @@ - packages - tsm +- name: ensure special dsmc script is in place + copy: src=dsmc dest=/usr/local/bin/dsmc mode=0755 owner=root group=root + notify: + - restart tsm service + tags: + - tsm + - config -- name: ensure special ldconfig in place - copy: src=tsm-ld.so.conf dest=/etc/ld.so.conf.d/tsm-ld.so.conf +- name: ensure special ldconfig is absent + file: path=/etc/ld.so.conf.d/tsm-ld.so.conf state=absent notify: - ldconfig tsm - restart tsm service