require "./service/service.cr" require "./config.cr" ServiceDefinition.load SERVICES_DIRECTORY Environment.load ENVIRONMENTS_DIRECTORY Service.load RC_DIRECTORY Service.get_by_id(ARGV[0]).try do |service| puts service.status PID_DIRECTORY exit 0 end exit 1