in progress

This commit is contained in:
Ricky Elrod 2014-04-24 17:53:34 +00:00 committed by Ricky Elrod
parent 362710ffa8
commit 4ee5939b13
490 changed files with 14041 additions and 0 deletions

View file

@ -0,0 +1,17 @@
#!/usr/bin/python
import fcntl
import sys
try:
f = open('/mnt/koji/.nagios_test', 'r')
f.close()
f = open('/mnt/koji/.nagios_test', 'w')
except IOError:
print "Could not create file"
sys.exit(2)
fcntl.flock(f, fcntl.LOCK_EX)
f.close()
print "File Locked Successfully"
sys.exit(0)