Skip to content

Instantly share code, notes, and snippets.

@polvi
Created July 1, 2013 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save polvi/310fad0a2a3b0859cfb1 to your computer and use it in GitHub Desktop.
Save polvi/310fad0a2a3b0859cfb1 to your computer and use it in GitHub Desktop.
localhost bin # curl localhost:8000
Hello World! %!s(int=5)
Have interface: lo
Have interface: enp0s3
Have interface: lxcbr0
localhost bin # curl localhost:8000
Hello World! %!s(int=6)
Have interface: lo
Have interface: enp0s3
Have interface: lxcbr0
localhost bin # ps aux|grep http
root 444 0.0 0.6 291012 3484 ? Ssl 21:10 0:00 /tmp/go-socket-activated-http-server-container-amd64-master/bin/socket-activated-http-server
root 454 0.0 0.1 4340 640 pts/0 S+ 21:10 0:00 grep --colour=auto http
localhost bin # curl localhost:8000^C
localhost bin # criu dump -D /tmp/out -t 444 --ext-unix-sk
(00.000091) Error (mem.c:67): Can't reset 455's dirty memory tracker: Invalid argument
(00.000948) Error (kerndat.c:107): Dirty tracking support is OFF
(00.004123) Error (mem.c:338): Can't open /proc/444/pagemap2: No such file or directory
localhost bin # ps aux|grep 444
root 458 0.0 0.1 4340 640 pts/0 S+ 21:11 0:00 grep --colour=auto 444
localhost bin # systemctl stop go-http-server.socket
localhost bin # criu restore -d -D /tmp/out
localhost bin # curl localhost:8000
Hello World! %!s(int=7)
Have interface: lo
Have interface: enp0s3
Have interface: lxcbr0
localhost bin #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment