LinuxForum.Fans
Тема

Service start/stop/status

Автор: InVariable 27 сообщений 8161 просмотров
#172027

[console]
Jun 22 11:57:46 msclxpayment av_osmp2.pl[3523]: Child 3523 handling connection
Jun 22 11:57:46 msclxpayment av_osmp3.pl[3539]: Child 3539 handling connection
Jun 22 11:57:46 msclxpayment av_osmp4.pl[3553]: Child 3553 handling connection
Jun 22 11:57:46 msclxpayment av_osmp3.pl[3539]: Child 3539 handling connection
Jun 22 11:57:46 msclxpayment av_osmp4.pl[3553]: Child 3553 handling connection
Jun 22 11:57:47 msclxpayment av_osmp3.pl[3539]: Child 3539 handling connection
Jun 22 11:57:49 msclxpayment av_osmp.pl[2880]: Child 2880 handling connection
Jun 22 11:57:49 msclxpayment av_osmp4.pl[3553]: Child 3553 handling connection
Jun 22 11:57:50 msclxpayment av_osmp4.pl[3553]: Child 3553 handling connection
Jun 22 11:57:50 msclxpayment av_cyber2.pl[3585]: Child 3585 handling connection
Jun 22 11:57:51 msclxpayment av_osmp.pl[2880]: Child 2880 handling connection
Jun 22 11:57:52 msclxpayment av_osmp2.pl[3523]: Child 3523 handling connection
Jun 22 11:57:53 msclxpayment av_osmp4.pl[3553]: Child 3553 handling connection
Jun 22 11:57:54 msclxpayment av_cyber2.pl[3585]: Child 3585 handling connection
Jun 22 11:57:54 msclxpayment av_osmp.pl[2880]: Child 2880 handling connection
Jun 22 11:57:55 msclxpayment av_osmp.pl[2880]: Child 2880 handling connection
Jun 22 11:57:56 msclxpayment av_osmp2.pl[3523]: Child 3523 handling connection
Jun 22 11:57:56 msclxpayment av_cyber2.pl[3585]: Child 3585 handling connection
Jun 22 11:57:58 msclxpayment av_osmp2.pl[3523]: Child 3523 handling connection
Jun 22 11:57:59 msclxpayment av_cyber.pl[3570]: Child 3570 handling connection
Jun 22 11:58:00 msclxpayment av_cyber2.pl[3585]: Child 3585 handling connection
Jun 22 11:58:01 msclxpayment av_cyber.pl[3570]: Child 3570 handling connection
Jun 22 11:58:02 msclxpayment av_osmp.pl[2880]: Child 2880 handling connection
Jun 22 11:58:02 msclxpayment av_osmp.pl[2880]: Child 2880 handling connection
Jun 22 11:58:02 msclxpayment av_osmp2.pl[3523]: Child 3523 handling connection
Jun 22 11:58:02 msclxpayment av_cyber.pl[3570]: Child 3570 handling connection
Jun 22 11:58:03 msclxpayment av_osmp3.pl[3539]: Child 3539 handling connection
Jun 22 11:58:03 msclxpayment av_osmp2.pl[3523]: Child 3523 handling connection
Jun 22 11:58:04 msclxpayment av_cyber.pl[3570]: Child 3570 handling connection
Jun 22 11:58:10 msclxpayment av_osmp2.pl[3523]: Child 3523 handling connection
Jun 22 11:58:12 msclxpayment av_osmp.pl[2880]: Child 2880 handling connection
Jun 22 11:58:18 msclxpayment av_osmp.pl[2880]: Child 2880 handling connection
Jun 22 11:58:19 msclxpayment av_osmp2.pl[3523]: Child 3523 handling connection
Jun 22 11:58:20 msclxpayment av_osmp2.pl[3523]: Child 3523 handling connection
Jun 22 11:58:20 msclxpayment av_osmp2.pl[3523]: Child 3523 handling connection
Jun 22 11:58:21 msclxpayment av_osmp2.pl[3523]: Child 3523 handling connection
Jun 22 11:58:21 msclxpayment av_cyber2.pl[3585]: Child 3585 handling connection
[/console]

Вот как-то так

#172030

InVariable, что нибудь связанное с av_dbd есть? я так понял у него еще есть отдельный лог. И там так же пусто ?
хотелось бы узнать, есть ли наличие самих файлов или подобных?

/etc/init.d/rc3.d/S08av_dbd
/etc/init.d/rc3.d/K01av_dbd
/etc/init.d/rc5.d/S08av_dbd
/etc/init.d/rc5.d/K01av_dbd

text

insserv: Loading K01av_osmp
insserv: Loading S08av_osmp

вот эти есть, а вот S(K)av_dbd я что то не увидил.

#172031

Естественно их нет так как

[console]
chkconfig --level 345 av_dbd on
insserv: script av_cyber2: service av_ivr already provided!
insserv: script av_osmp3: service av_ivr already provided!
insserv: script av_osmp2: service av_ivr already provided!
insserv: script av_osmp4: service av_ivr already provided!
insserv: script av_tst: service av_ivr already provided!
insserv: script av_cyber: service av_ivr already provided!
insserv: script av_dbd: service av_ivr already provided!
insserv: exiting now!
/sbin/insserv failed, exit code 1
[/console]

Я так понимаю они там появляются после этой команды - а она не работает....
В логе сервиса всё хорошо - лог идёт...

#172032

InVariable, нет, они сами не появляются, их надо создать, аналогично тем что у вас на другой системе,, почитайте о System startup script в linux, в SUSE возможно это будет некий симлинк, проверить легко:
[console]
ls -l /etc/rc.d/rc3.d/
total 0
lrwxrwxrwx 1 root root 22 Mar 24 18:51 K01SuSEfirewall2_setup -> ../SuSEfirewall2_setup
lrwxrwxrwx 1 root root 9 Mar 24 18:21 K01auditd -> ../auditd
[/console]
сам же скрипт лежит вот здесь: /etc/init.d/
[console]

ls -l /etc/init.d/
total 980
...
-rwxr-xr-x 1 root root 1994 Apr 9 01:31 SuSEfirewall2_setup
...
[/console]

создайте симлинк с помощью команды ln -s , и попытайтесь включить службу =)

#172042

[console]
host:/etc/rc.d/rc3.d # ln -s /etc/init.d/av_dbd
host:/etc/rc.d/rc3.d # ll | grep av
lrwxrwxrwx 1 root root 18 Июн 22 12:52 av_dbd -> /etc/init.d/av_dbd
lrwxrwxrwx 1 root root 10 Июн 16 15:14 K01av_osmp -> ../av_osmp
lrwxrwxrwx 1 root root 10 Июн 16 15:14 S08av_osmp -> ../av_osmp
[/console]

Правильно?

[console]
host:/etc/rc.d/rc3.d # chkconfig --level 345 av_dbd on
insserv: script av_cyber2: service av_ivr already provided!
insserv: script av_osmp3: service av_ivr already provided!
insserv: script av_osmp2: service av_ivr already provided!
insserv: script av_osmp4: service av_ivr already provided!
insserv: script av_tst: service av_ivr already provided!
insserv: script av_cyber: service av_ivr already provided!
insserv: script av_dbd: service av_ivr already provided!
insserv: exiting now!
/sbin/insserv failed, exit code 1
[/console]

Всё равно не работает....

#172045
InVariable написал:
Правильно?

http://ru.wikipedia.org/wiki/Ln_(UNIX)

примерно так:
#cd /etc/init.d/
# ln -s av_dbd /etc/rc.d/rc3.d/S01av_dbd
# ls -l /etc/rc.d/rc3.d/S01av_dbd
lrwxrwxrwx 1 root root 6 Jun 22 13:00 /etc/rc.d/rc3.d/S01av_dbd -> av_dbd

да и еще, для примера посмотрите на содержание других скриптов.

Войдите или зарегистрируйтесь, чтобы ответить.