Skip to content

Instantly share code, notes, and snippets.

@coderjo
Created November 24, 2013 03:13
Show Gist options
  • Save coderjo/7622857 to your computer and use it in GitHub Desktop.
Save coderjo/7622857 to your computer and use it in GitHub Desktop.
Evidence that the current official debian wheezy 7.2 ec2 images run the user-data script twice, and from where.
PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND
1 1518 1518 1518 ? -1 Ss 0 0:00 /bin/sh /etc/init.d/rc 2
1518 1527 1518 1518 ? -1 SL 0 0:00 \_ startpar -p 4 -t 20 -T 3 -M start -P N -R 2
1527 1593 1593 1518 ? -1 S 0 0:00 \_ /bin/bash /etc/init.d/ec2-run-user-data start
1593 1603 1593 1518 ? -1 S 0 0:00 \_ /bin/sh /tmp/ec2agEOii.user-data
1603 1607 1593 1518 ? -1 R 0 0:00 | \_ ps axjfww
1593 1604 1593 1518 ? -1 S 0 0:00 \_ logger -t user-data
PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND
1 1518 1518 1518 ? -1 Ss 0 0:00 /bin/sh /etc/init.d/rc 2
1518 1527 1518 1518 ? -1 SL 0 0:00 \_ startpar -p 4 -t 20 -T 3 -M start -P N -R 2
1527 1837 1837 1518 ? -1 S 0 0:00 \_ /bin/sh /etc/init.d/cloud-final start
1837 1843 1837 1518 ? -1 S 0 0:00 \_ /usr/bin/python /usr/bin/cloud-init modules --mode final
1843 1848 1837 1518 ? -1 S 0 0:00 \_ /bin/sh /var/lib/cloud/instance/scripts/part-001
1848 1851 1837 1518 ? -1 R 0 0:00 \_ ps axjfww
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment