Ticket #12258: boot_time_logger.sh

File boot_time_logger.sh, 834 bytes (added by mmlr, 9 years ago)

boot_time_logger script

Line 
1#!/bin/sh
2
3
4# Send a message to and wait for a reply from all servers to determine when
5# everything's ready.
6SIGNATURES="
7 application/x-vnd.haiku-registrar
8 application/x-vnd.Haiku-mount_server
9 application/x-vnd.Haiku-powermanagement
10 application/x-vnd.Haiku-cddb_daemon
11 application/x-vnd.Haiku-midi_server
12 application/x-vnd.haiku-net_server
13 application/x-vnd.Haiku-debug_server
14 application/x-vnd.Be-PSRV
15 application/x-vnd.haiku-package_daemon
16 application/x-vnd.Haiku-notification_server
17 application/x-vnd.Be-input_server
18 application/x-vnd.Be.media-server
19 application/x-vnd.Be.addon-host
20 application/x-vnd.Be-TRAK
21 application/x-vnd.Be-TSKB"
22
23for SIGNATURE in $SIGNATURES
24do
25 waitfor -m $SIGNATURE
26 hey -s $SIGNATURE get
27 if [ $? -ne 0 ]
28 then
29 echo "Failed to get a reply for $SIGNATURE"
30 exit 1
31 fi
32done
33
34system_time