# CREATE A NEW CLEAN VSERVER TEMPLATE
NAME="my-container" # the name of the vserver (also used as its hostname)
IPADDR="10.2.0.2/24" # some IP address
CTID=2 # some host-local unique vserver ID
vserver $NAME build -m debootstrap \
--context $CTID \
--hostname $NAME \
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| libtool --quiet --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -c -DLUA_USE_LINUX -march=native -O2 -g -pipe -o print.lo print.c | |
| libtool --quiet --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -version-info 6:4:1 \ | |
| -rpath /usr/lib64/ -Wl,-O1 -Wl,--as-needed -o liblua.la lapi.lo lcode.lo ldebug.lo ldo.lo ldump.lo lfunc.lo lgc.lo llex.lo lmem.lo lobject.lo lopcodes.lo lparser.lo lstate.lo lstring.lo ltable.lo ltm.lo lundump.lo lvm.lo lzio.lo lauxlib.lo lbaselib.lo ldblib.lo liolib.lo lmathlib.lo loslib.lo ltablib.lo lstrlib.lo loadlib.lo linit.lo -lm -ldl | |
| libtool --quiet --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -export-dynamic -Wl,-O1 -Wl,--as-needed -o lua lua.lo liblua.la -lreadline | |
| libtool --quiet --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -static -export-dynamic -Wl,-O1 -Wl,--as-needed -o lua_test lua.lo liblua.la -lreadline | |
| libtool --quiet --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -static -Wl,-O1 -Wl,--as-needed -o luac luac.lo print.lo liblua.la | |
| .libs/luac.o: In function `combine': | |
| /va |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| configure: creating ./config.status | |
| config.status: creating Makefile | |
| config.status: creating onig-config | |
| config.status: creating sample/Makefile | |
| config.status: creating config.h | |
| config.status: executing depfiles commands | |
| config.status: executing libtool commands | |
| config.status: executing default commands | |
| cd . && /bin/sh /home/trapni/.rvm/src/rbx-head/vendor/onig/missing --run aclocal-1.10 | |
| configure.in:65: warning: AC_CACHE_VAL(cv_have_prototypes, ...): suspicious cache-id, must contain _cv_ to be cached |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| trapni@windsor ~/local/src/rubinius $ git nuke | |
| Removing config.rb | |
| Removing configure.log | |
| Removing lib/readline.rb | |
| Removing lib/rubinius/build_config.rb | |
| Removing vm/capi/18/include/config.h | |
| Removing vm/capi/18/include/rbx_config.h | |
| Removing vm/capi/19/include/config.h | |
| Removing vm/capi/19/include/rbx_config.h | |
| Removing vm/gen/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CXX visitor18.cpp | |
| CXX visitor19.cpp | |
| LDSHARED build/melbourne20.so | |
| mkdir -p runtime | |
| GEN runtime/platform.conf | |
| rake aborted! | |
| Compilation error generating constants rbx.platform.zlib: | |
| In file included from /home/trapni/local/src/rubinius/rbx-ffi-generators-rbx-platform-zlib.c:2:0: | |
| vendor/zlib/zlib.h:80:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF' | |
| vendor/zlib/zlib.h:81:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Rubinius | |
| BUILD_CONFIG = { | |
| :which_ruby => :ruby, | |
| :build_ruby => "/usr/bin/ruby18", | |
| :build_rake => "rake", | |
| :build_perl => "perl", | |
| :llvm => :prebuilt, | |
| :llvm_configure => "", | |
| :cc => "gcc", | |
| :cxx => "g++", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (beresp.http.X-Private-TTL) { | |
| C{ | |
| char* ttl; | |
| ttl = VRT_GetHdr(sp, HDR_BERESP, "\017X-Private-TTL:"); | |
| int ttli = atoi(ttl); | |
| VRT_l_beresp_ttl(sp, ttli); | |
| VRT_SetHdr(sp, HDR_BERESP, "\006X-ttl:", "%d", ttli, vrt_magic_string_end); | |
| }C | |
| } else { | |
| call set_ttl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <sys/resource.h> | |
| #include <sys/time.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| void sys_die(const char* msg) { | |
| perror(msg); | |
| exit(1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ##### GIT PROMPT | |
| RED="\[\033[0;31m\]" | |
| YELLOW="\[\033[0;33m\]" | |
| GREEN="\[\033[0;32m\]" | |
| BLUE="\[\033[0;34m\]" | |
| LIGHT_RED="\[\033[1;31m\]" | |
| LIGHT_GREEN="\[\033[1;32m\]" | |
| LIGHT_BLUE="\[\033[1;34m\]" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c | |
| index db47357..76ef77b 100644 | |
| --- a/src/core/ngx_cycle.c | |
| +++ b/src/core/ngx_cycle.c | |
| @@ -84,6 +84,12 @@ ngx_init_cycle(ngx_cycle_t *old_cycle) | |
| cycle->pool = pool; | |
| cycle->log = log; | |
| cycle->new_log.log_level = NGX_LOG_ERR; | |
| +#if (NGX_ENABLE_SYSLOG) || 1 | |
| + cycle->new_log.facility = SYSLOG_FACILITY; |