Skip to content

Instantly share code, notes, and snippets.

@notthetup
Last active March 17, 2016 03:37
Show Gist options
  • Save notthetup/2bd11a60b5b432dc7b77 to your computer and use it in GitHub Desktop.
Save notthetup/2bd11a60b5b432dc7b77 to your computer and use it in GitHub Desktop.
Measuring boot time.
echo "$(date +"%Y-%m-%d %H:%M:%S") Booted. Uptime : $(cat /proc/uptime | cut -d' ' -f 1)" >> /home/odroid/boottime.log
java -jar /home/odroid/unetsim-1.3-SNAPSHOT/lib/groovy-all-2.4.4.jar /home/odroid/unetsim-1.3-SNAPSHOT/samples/boottime/boottime.groovy
@notthetup
Copy link
Author

[Unit]
Description=Boot Time Service

[Service]

Type=oneshot
ExecStart=/home/odroid/onboot.sh

[Install]
WantedBy=multi-user.target

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment