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