All of the following information is based on go version go1.17.1 darwin/amd64
.
GOOS | Out of the Box |
---|---|
aix |
✅ |
android |
✅ |
/* | |
dump-pagemap.c - Dump pagemap entries associated with mappings of a given process | |
Copyright 2021 Hilko Bengen <[email protected]> | |
License: GPL3 or later | |
Based on information from: | |
- linux/Documentation/filesystems/proc.txt | |
- linux/Documentation/admin-guide/mm/pagemap.rst | |
*/ |
package main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"os/signal" | |
"syscall" | |
"time" |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
package main | |
import ( | |
"crypto/tls" | |
"crypto/x509" | |
"fmt" | |
"io" | |
"log" | |
) |
git fetch upstream | |
git reset --hard upstream/master |