Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
isv:SUSEInfra:Containers
vrnetlab
_service:extract_file:healthcheck.py
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:extract_file:healthcheck.py of Package vrnetlab
#!/usr/bin/env python3 import sys try: health_file = open("/tmp/health", "r") health = health_file.read() health_file.close() except FileNotFoundError: print("health status file not found") sys.exit(2) exit_status, message = health.strip().split(" ", 1) if message != '': print(message) sys.exit(int(exit_status))
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor