Native systemd unit for tsm client

Thomas Moschny thomas.moschny at gmail.com
Thu Dec 15 09:08:30 UTC 2011


Why are you starting dsmc explicitly - isn't it started by dsmcad?
Here's what we've been using:

[Unit]
Description=DSM Client Acceptor
After=network.target

[Service]
Type=forking
ExecStart=-/usr/bin/dsmcad -errorlogname=/var/log/dsmerror.log
Environment=LANG=en_US
StandardOutput=syslog
GuessMainPID=no

[Install]
WantedBy=multi-user.target

For some reason the PID guessing does not work, so we force it to use cgroups.

- Thomas


2011/12/15 "Jóhann B. Guðmundsson" <johannbg at gmail.com>:
> Here's an native tsm client service for your fedora running
> workstation/server since it's probably going to be awhile before IBM catches
> up to systemd...
>
> ### tsm-client.service ###
>
> [Unit]
> Description=Tivoly Storage Manager Client
> After=network.target
>
> [Service]
> Type=oneshot
> Environment=DSM_LOG=/var/log/tsm
> ExecStart=/usr/bin/dsmcad
> ExecStart=/bin/bash -c "exec /usr/bin/dsmc sched > /dev/null 2>&1 &"
> RemainAfterExit=yes
>
> [Install]
> WantedBy=multi-user.target
>


More information about the devel mailing list