blob: c1cceffb0ca93746ca41dd48515b427ea0cb9903 (
plain)
1
2
3
4
5
6
7
|
#!/usr/bin/python3
import crm_script
try:
uptime = open('/proc/uptime').read().split()[0]
crm_script.exit_ok(uptime)
except Exception as e:
crm_script.exit_fail("Couldn't open /proc/uptime: %s" % (e))
|