Open MPI logo

MTT Devel Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all MTT Devel mailing list

Subject: [MTT devel] mtt-relay patch - create pid file when run as daemon
From: Christoph Niethammer (niethammer_at_[hidden])
Date: 2013-09-30 07:08:21


As on many systems init scripts and the handling of services is based on pid files I extended the mtt-relay script as follows:

If run with the --daemon option
* Create file /var/run/ if it does not exist and write the pid of the background process into it.
* exit with return value 1 if /var/run/ file exists.

Patch is attached.

Best regards
Christoph Niethammer

Christoph Niethammer
High Performance Computing Center Stuttgart (HLRS)
Nobelstrasse 19
70569 Stuttgart
Tel: ++49(0)711-685-87203
email: niethammer_at_[hidden]