utils/jenkins-jnlp-connect.sh: Make sure the pid directory exists 35/26835/3
authorMarkos Chandras <mchandras@suse.de>
Tue, 10 Jan 2017 15:48:51 +0000 (15:48 +0000)
committerMarkos Chandras <mchandras@suse.de>
Wed, 11 Jan 2017 10:56:47 +0000 (10:56 +0000)
commit309d7e37065bea52e31f0cb6573dc8d19a41fc0b
treeff8105e2cb030006586623c1309edecdc17efcfb
parent3f8ff074cbdc4f6d882345ac2cacf2acc26efc5b
utils/jenkins-jnlp-connect.sh: Make sure the pid directory exists

/var/run/ is only writable by root so Monit will fail to create
the necessary subdirectory for the jenkins pid file since we run it
as the 'jenkin' user. We add another entry to the monit configuration
file to check the presence and the permissions of that directory before
we try to start the jenkins slave.

Change-Id: Ica7153c3e90900f60e4f65708c8f08abf5af9201
Signed-off-by: Markos Chandras <mchandras@suse.de>
utils/jenkins-jnlp-connect.sh