Перейти до

СТГ вываливается в 00:00


Рекомендованные сообщения

Ну вот пересобрал СТГ, взял версию с v-lan, модуль мускуля и патч для СТГ из архива веб-админки от Алферова версии 0.08. Вот кусок лога:

2007-11-17 19:03:42 -- +++++++++++++++++++++++++++++++++++++++++++++
2007-11-17 19:24:08 -- Admin 'kolian', 10.10.3.1: User 'Butko': 'passive' parameter changed from '1' to '0'.
2007-11-17 19:24:42 -- Admin 'kolian', 10.10.3.1: User 'len45kv19': 'passive' parameter changed from '1' to '0'.
2007-11-18 00:00:00 -- Admin '@stargazer', 0.0.0.0: User 'Vitcuk': 'cash' parameter changed from '31.9502' to '30.4502'. Subscriber fee charge
2007-11-18 00:00:00 -- Admin '@stargazer', 0.0.0.0: User 'Vitaly': 'cash' parameter changed from '46.1667' to '44'. Subscriber fee charge
2007-11-18 00:00:01 -- Stg v. Stg 2.403b
2007-11-18 00:00:01 -- Message queue created successfully. msgKey=5555 msgID=1769472
2007-11-18 00:00:01 -- Timer thread started successfully.
2007-11-18 00:00:01 -- Storage plugin: mysql_store v.0.67. Loading successfull.
2007-11-18 00:00:03 -- Users started successfully.
2007-11-18 00:00:03 -- Traffcounter started successfully.
2007-11-18 00:00:03 -- Module: 'bpf_cap v.1.0'. Start successfull. 0
2007-11-18 00:00:03 -- Module: 'InetAccess authorizator v.1.1'. Start successfull. 50
2007-11-18 00:00:03 -- Module: 'Pinger v.1.01'. Start successfull. 100
2007-11-18 00:00:03 -- Module: 'Stg configurator v.0.05'. Start successfull. 220
2007-11-18 00:00:03 -- Stg started successfully.
2007-11-18 00:00:03 -- +++++++++++++++++++++++++++++++++++++++++++++

и еще, не всегда он выполняет онконнект, перезапустишь - выполняет!

Ссылка на сообщение
Поделиться на других сайтах

Эмм... Я взял создал папку, скопировал в нее патч, и распаковал СТГ:

mysql-0.67_stg-2.4-2007.01.20-13.47.20.patch

stg-2.4-2007.01.20-13.47.20

Взял из архива stg-web_0.08.tar.gz модуль хранения данных в мускуле, скопировал куда надо.

Набрал patch < mysql-0.67_stg-2.4-2007.01.20-13.47.20.patch

все пропатчилось вродь нормально, в конце было написано done.

Взял собрал СТГ, потом собрал его, собрал модуль, и установил. Запустил, вродь работает)

Потом заметил, что денежки не снимает :)

Ссылка на сообщение
Поделиться на других сайтах

Вот так прошел патч:

 

|--- stg-2.4-2007.01.20-13.47.20/include/user_stat.h    Thu Dec 22 02:35:01 2005
|+++ stg-2.4-2007.01.20-13.47.20_Alf/include/user_stat.h        Sun Mar 11 01:42:16 2007
--------------------------
Patching file stg-2.4-2007.01.20-13.47.20/include/user_stat.h using Plan A...
Hunk #1 succeeded at 77.
Hunk #2 succeeded at 118.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -uarN stg-2.4-2007.01.20-13.47.20/projects/stargazer/plugins/authorization/inetaccess/inetaccess.cpp stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/plugins/authorization/inetaccess/inetaccess.cpp
|--- stg-2.4-2007.01.20-13.47.20/projects/stargazer/plugins/authorization/inetaccess/inetaccess.cpp     Sat Jan 20 14:47:05 2007
|+++ stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/plugins/authorization/inetaccess/inetaccess.cpp Wed Sep 19 19:59:02 2007
--------------------------
Patching file stg-2.4-2007.01.20-13.47.20/projects/stargazer/plugins/authorization/inetaccess/inetaccess.cpp using Plan A...
Hunk #1 succeeded at 289.
Hunk #2 succeeded at 298.
Hunk #3 succeeded at 404.
Hunk #4 succeeded at 462.
Hunk #5 succeeded at 657.
Hunk #6 succeeded at 674.
Hunk #7 succeeded at 989.
Hunk #8 succeeded at 1428.
Hunk #9 succeeded at 1465.
Hunk #10 succeeded at 1550.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -uarN stg-2.4-2007.01.20-13.47.20/projects/stargazer/plugins/configuration/sgconfig/parser.cpp stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/plugins/configuration/sgconfig/parser.cpp
|--- stg-2.4-2007.01.20-13.47.20/projects/stargazer/plugins/configuration/sgconfig/parser.cpp   Mon Dec 18 20:06:48 2006
|+++ stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/plugins/configuration/sgconfig/parser.cpp       Sun Mar 11 16:20:05 2007
--------------------------
Patching file stg-2.4-2007.01.20-13.47.20/projects/stargazer/plugins/configuration/sgconfig/parser.cpp using Plan A...
Hunk #1 succeeded at 287.
Hunk #2 succeeded at 499.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -uarN stg-2.4-2007.01.20-13.47.20/projects/stargazer/plugins/store/files/file_store.cpp stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/plugins/store/files/file_store.cpp
|--- stg-2.4-2007.01.20-13.47.20/projects/stargazer/plugins/store/files/file_store.cpp  Mon Dec 18 20:06:49 2006
|+++ stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/plugins/store/files/file_store.cpp      Wed Apr 18 22:52:03 2007
--------------------------
Patching file stg-2.4-2007.01.20-13.47.20/projects/stargazer/plugins/store/files/file_store.cpp using Plan A...
Hunk #1 succeeded at 902.
Hunk #2 succeeded at 913.
Hunk #3 succeeded at 1521.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -uarN stg-2.4-2007.01.20-13.47.20/projects/stargazer/plugins/store/files/file_store.h stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/plugins/store/files/file_store.h
|--- stg-2.4-2007.01.20-13.47.20/projects/stargazer/plugins/store/files/file_store.h    Tue Apr 11 14:30:30 2006
|+++ stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/plugins/store/files/file_store.h        Wed Apr 18 22:52:18 2007
--------------------------
Patching file stg-2.4-2007.01.20-13.47.20/projects/stargazer/plugins/store/files/file_store.h using Plan A...
Hunk #1 succeeded at 97.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -uarN stg-2.4-2007.01.20-13.47.20/projects/stargazer/plugins/store/mysql/mysql_store.cpp stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/plugins/store/mysql/mysql_store.cpp
|--- stg-2.4-2007.01.20-13.47.20/projects/stargazer/plugins/store/mysql/mysql_store.cpp Sun Aug 26 22:35:40 2007
|+++ stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/plugins/store/mysql/mysql_store.cpp     Mon Oct  1 10:26:35 2007
--------------------------
Patching file stg-2.4-2007.01.20-13.47.20/projects/stargazer/plugins/store/mysql/mysql_store.cpp using Plan A...
Hunk #1 succeeded at 213.
Hunk #2 succeeded at 340.
Hunk #3 succeeded at 386.
Hunk #4 succeeded at 555.
Hunk #5 succeeded at 570.
Hunk #6 succeeded at 592.
Hunk #7 succeeded at 1044.
Hunk #8 succeeded at 1084.
Hunk #9 succeeded at 1125.
Hunk #10 succeeded at 1149.
Hunk #11 succeeded at 1179.
Hunk #12 succeeded at 1729.
Hunk #13 succeeded at 1769.
Hunk #14 succeeded at 1819.
Hunk #15 succeeded at 1843.
Hunk #16 succeeded at 1928.
Hunk #17 succeeded at 2032.
Hunk #18 succeeded at 2063.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -uarN stg-2.4-2007.01.20-13.47.20/projects/stargazer/plugins/store/mysql/mysql_store.h stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/plugins/store/mysql/mysql_store.h
|--- stg-2.4-2007.01.20-13.47.20/projects/stargazer/plugins/store/mysql/mysql_store.h   Fri Jul 13 15:25:17 2007
|+++ stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/plugins/store/mysql/mysql_store.h       Sat Jul 14 23:57:30 2007
--------------------------
Patching file stg-2.4-2007.01.20-13.47.20/projects/stargazer/plugins/store/mysql/mysql_store.h using Plan A...
Hunk #1 succeeded at 69.
Hunk #2 succeeded at 124.
Hunk #3 succeeded at 139.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -uarN stg-2.4-2007.01.20-13.47.20/projects/stargazer/settings.cpp stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/settings.cpp
|--- stg-2.4-2007.01.20-13.47.20/projects/stargazer/settings.cpp        Mon Dec 18 20:06:47 2006
|+++ stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/settings.cpp    Tue Aug 28 23:28:40 2007
--------------------------
Patching file stg-2.4-2007.01.20-13.47.20/projects/stargazer/settings.cpp using Plan A...
Hunk #1 succeeded at 45.
Hunk #2 succeeded at 258.
Hunk #3 succeeded at 318.
Hunk #4 succeeded at 478.
Hunk #5 succeeded at 536.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -uarN stg-2.4-2007.01.20-13.47.20/projects/stargazer/settings.h stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/settings.h
|--- stg-2.4-2007.01.20-13.47.20/projects/stargazer/settings.h  Wed Oct 18 14:25:40 2006
|+++ stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/settings.h      Tue Aug 28 23:29:51 2007
--------------------------
Patching file stg-2.4-2007.01.20-13.47.20/projects/stargazer/settings.h using Plan A...
Hunk #1 succeeded at 74.
Hunk #2 succeeded at 106.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -uarN stg-2.4-2007.01.20-13.47.20/projects/stargazer/user.cpp stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/user.cpp
|--- stg-2.4-2007.01.20-13.47.20/projects/stargazer/user.cpp    Sun Jan  7 16:27:17 2007
|+++ stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/user.cpp        Mon Oct  1 22:42:49 2007
--------------------------
Patching file stg-2.4-2007.01.20-13.47.20/projects/stargazer/user.cpp using Plan A...
Hunk #1 succeeded at 197.
Hunk #2 succeeded at 425.
Hunk #3 succeeded at 526.
Hunk #4 succeeded at 534.
Hunk #5 succeeded at 580.
Hunk #6 succeeded at 620.
Hunk #7 succeeded at 682.
Hunk #8 succeeded at 700.
Hunk #9 succeeded at 768.
Hunk #10 succeeded at 800.
Hunk #11 succeeded at 846.
Hunk #12 succeeded at 1149.
Hunk #13 succeeded at 1170.
Hunk #14 succeeded at 1241.
Hunk #15 succeeded at 1313.
Hunk #16 succeeded at 1346.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -uarN stg-2.4-2007.01.20-13.47.20/projects/stargazer/user.h stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/user.h
|--- stg-2.4-2007.01.20-13.47.20/projects/stargazer/user.h      Tue Dec 19 20:00:47 2006
|+++ stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/user.h  Fri Sep 21 22:11:53 2007
--------------------------
Patching file stg-2.4-2007.01.20-13.47.20/projects/stargazer/user.h using Plan A...
Hunk #1 succeeded at 154.
Hunk #2 succeeded at 166.
Hunk #3 succeeded at 307.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -uarN stg-2.4-2007.01.20-13.47.20/projects/stargazer/user_property.h stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/user_property.h
|--- stg-2.4-2007.01.20-13.47.20/projects/stargazer/user_property.h     Fri Oct 13 11:18:44 2006
|+++ stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/user_property.h Tue Aug 28 23:32:57 2007
--------------------------
Patching file stg-2.4-2007.01.20-13.47.20/projects/stargazer/user_property.h using Plan A...
Hunk #1 succeeded at 328.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -uarN stg-2.4-2007.01.20-13.47.20/projects/stargazer/users.cpp stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/users.cpp
|--- stg-2.4-2007.01.20-13.47.20/projects/stargazer/users.cpp   Tue Dec 19 14:05:59 2006
|+++ stg-2.4-2007.01.20-13.47.20_Alf/projects/stargazer/users.cpp       Tue Aug 28 23:33:45 2007
--------------------------
Patching file stg-2.4-2007.01.20-13.47.20/projects/stargazer/users.cpp using Plan A...
Hunk #1 succeeded at 470.
done

Вот все то, что влезло на экран.

теперь вывод того, что Вы просили:

my# ls -l stg-2.4-2007.01.20-13.47.20/projects/stargazer/plugins/store/mysql/
total 138
-rwxr-xr-x  1 root  100   5075 20 ноя 08:38 INSTALL.html
-rw-r--r--  1 root  100   1249 20 ноя 08:38 Makefile
-rwxr-xr-x  1 root  100    844 20 ноя 08:38 build
-rw-r--r--  1 root  100  55510 20 ноя 08:39 mysql_store.cpp
-rw-r--r--  1 root  100  50295 20 ноя 08:38 mysql_store.cpp.orig
-rw-r--r--  1 root  100   6249 20 ноя 08:39 mysql_store.h
-rw-r--r--  1 root  100   5905 20 ноя 08:38 mysql_store.h.orig
-rw-r--r--  1 root  100   6750 20 ноя 08:38 stargazer.conf

Ссылка на сообщение
Поделиться на других сайтах

Таакс... Щас все работает все окей. Пришлось поправить мейкфайл, так как найдено несколько ошибок, большая просьба разработчикам просмотреть его :)

Мейкфайл из папки stg-2.4-2007.01.20-13.47.20/projects/stargazer/plugins/store/mysql


DEFS = -DLINUX

DIR_INCLUDE = ../../../../../include
DIR_LIB = ../../../../../lib

SEARCH_DIRS = -I $(DIR_INCLUDE) -I /usr/include/mysql
LDFLAGS = -g3 -shared -lmysqlclient -L /usr/lib/mysql

ifeq ($(OS),bsd)
DEFS = -DFREE_BSD

SEARCH_DIRS = -I $(DIR_INCLUDE) -I /usr/local/mysql/include/mysql
LDFLAGS = -g3 -shared -lmysqlclient -L /usr/local/mysql/lib/mysql
endif

ifeq ($(OS),bsd5)
DEFS = -DFREE_BSD5

SEARCH_DIRS = -I $(DIR_INCLUDE) -I /usr/local/mysql/include/mysql
LDFLAGS = -g3 -shared -lmysqlclient -L /usr/local/mysql/lib/mysql
endif

PROG = mod_store_mysql.so

SRCS = ./mysql_store.cpp

LIBS =

OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))

CC = g++

CFLAGS = -g3 -Wall -fPIC

vpath %.a $(DIR_LIB)


all: $(PROG)

$(PROG): $(OBJS) $(LIBS)
       $(CC) $^ $(LDFLAGS) -o $(PROG)

clean:
       rm -f deps $(PROG) *.o tags *.*~

install:
       cp mod_store_mysql.so /usr/lib/stg

uninstall:
       echo TODO

test:
       echo "$(GG)"

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(MAKECMDGOALS),uninstall)
include deps
endif
endif

deps:   $(SRCS)
       @>deps;\
       for file in $(SRCS); do\
         echo "`$(CC) $(CFLAGS) $(DEFS) $(SEARCH_DIRS) -MM $$file` Makefile" >> deps;\
         echo -e '\t$$(CC) -c $$< $(CFLAGS) $(SEARCH_DIRS) $(DEFS)' >> deps;\
       done

Ссылка на сообщение
Поделиться на других сайтах

Создайте аккаунт или войдите в него для комментирования

Вы должны быть пользователем, чтобы оставить комментарий

Создать аккаунт

Зарегистрируйтесь для получения аккаунта. Это просто!

Зарегистрировать аккаунт

Вхід

Уже зарегистрированы? Войдите здесь.

Войти сейчас
  • Зараз на сторінці   0 користувачів

    Немає користувачів, що переглядають цю сторінку.

×
×
  • Створити нове...