6 svc = AIDS::Service.new(argv[1]) if argv[1]
18 AIDS.get_all_services.sort_by{|s|s.name}.each{|s|display_status(s)}
25 def display_status(svc)
26 print "#{svc.name[0..14]}:#{' ' * (16 - svc.name[0..14].length)}"
28 AIDS::RUNLEVEL_ALL.each do |r|
39 print "#{r}: #{prettystatus + ' ' * (8 - prettystatus.length)}"
46 AIDS - Assistant for Initialisation of Debian Services
48 Usage: #{$0} command [service]
50 Command may be one of:
59 Lists the current status of the service, or of all services if
65 main(ARGV) if $0 == __FILE__