diff options
Diffstat (limited to 'backup/tsm/files')
-rw-r--r-- | backup/tsm/files/dsmc.conf.d | 7 | ||||
-rw-r--r-- | backup/tsm/files/dsmc.init.d | 27 | ||||
-rw-r--r-- | backup/tsm/files/dsmc.service | 10 | ||||
-rw-r--r-- | backup/tsm/files/dsmcad.init.d-r1 | 25 | ||||
-rw-r--r-- | backup/tsm/files/dsmcad.service | 12 | ||||
-rw-r--r-- | backup/tsm/files/tsm.logrotate | 4 |
6 files changed, 85 insertions, 0 deletions
diff --git a/backup/tsm/files/dsmc.conf.d b/backup/tsm/files/dsmc.conf.d new file mode 100644 index 000000000000..c4fd1c76a98c --- /dev/null +++ b/backup/tsm/files/dsmc.conf.d @@ -0,0 +1,7 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Config file for /etc/init.d/tivoli + +# See your TSM manual for valid ops +#DSMC_OPTS="" diff --git a/backup/tsm/files/dsmc.init.d b/backup/tsm/files/dsmc.init.d new file mode 100644 index 000000000000..0e9773294858 --- /dev/null +++ b/backup/tsm/files/dsmc.init.d @@ -0,0 +1,27 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use net + after dns +} + +start() { + ebegin "Starting dsmc" + start-stop-daemon --start --background --nicelevel 15 \ + --make-pidfile --pidfile /var/run/dsmc.pid \ + --exec /opt/tivoli/tsm/client/ba/bin/dsmc sched ${DSMC_OPTS} + eend $? +} + +stop() { + ebegin "Stopping dsmc" + # For whatever reason SIGTERM doesn't affect the dsmc process, but + # SIGHUP makes it exit cleanly + start-stop-daemon --stop \ + --signal 1 \ + --pidfile /var/run/dsmc.pid + eend $? +} + diff --git a/backup/tsm/files/dsmc.service b/backup/tsm/files/dsmc.service new file mode 100644 index 000000000000..aa25e1f74798 --- /dev/null +++ b/backup/tsm/files/dsmc.service @@ -0,0 +1,10 @@ +[Unit] +Description=Tivoli Storage Manager (TSM) - dsmc +After=network.target + +[Service] +Nice=15 +ExecStart=/opt/tivoli/tsm/client/ba/bin/dsmc sched + +[Install] +WantedBy=multi-user.target diff --git a/backup/tsm/files/dsmcad.init.d-r1 b/backup/tsm/files/dsmcad.init.d-r1 new file mode 100644 index 000000000000..6c487fd8c970 --- /dev/null +++ b/backup/tsm/files/dsmcad.init.d-r1 @@ -0,0 +1,25 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +command=/opt/tivoli/tsm/client/ba/bin/dsmcad + +depend() { + use net + after dns dsmc +} + +start() { + ebegin "Starting dsmcad" + start-stop-daemon --start --nicelevel 15 \ + --exec ${command} + eend $? +} + +stop() { + ebegin "Stopping dsmcad" + start-stop-daemon --stop \ + --signal 1 \ + --exec ${command} + eend $? +} diff --git a/backup/tsm/files/dsmcad.service b/backup/tsm/files/dsmcad.service new file mode 100644 index 000000000000..34cccedd820f --- /dev/null +++ b/backup/tsm/files/dsmcad.service @@ -0,0 +1,12 @@ +[Unit] +Description=Tivoli Storage Manager (TSM) - dsmcad +After=network.target dsmc.service + +[Service] +Type=forking +Nice=15 +ExecStart=/opt/tivoli/tsm/client/ba/bin/dsmcad +GuessMainPID=no + +[Install] +WantedBy=multi-user.target diff --git a/backup/tsm/files/tsm.logrotate b/backup/tsm/files/tsm.logrotate new file mode 100644 index 000000000000..656e8aff515b --- /dev/null +++ b/backup/tsm/files/tsm.logrotate @@ -0,0 +1,4 @@ +/var/log/tsm/*.log { + create 0660 root tsm + delaycompress +} |