1 (12.09.2011 15:02:48 отредактировано zenon)

pppoe подключается ровно через одну перезагрузку - т.е. необходимо чтобы произошла загрузка ядра, потом 1-й раз подклячается, 2-й - нет, 3-й ок и т.д.
Настраивал через pppoe-setup.
$ cat /etc/conf.d/net

modules=( "ifconfig" )
config_eth0="192.168.0.1 netmask 255.255.255.0"
config_eth1=( "adsl" )
user_eth1=( "vXXXXXX" )
postup() {
 if [ "${IFACE}" = "eth1" ]; then
    /usr/local/sbin/zfirewall
 fi
 return 0
}
История показывает, что во всем новом обычно кроется какой-то подвох.
Классическая ошибка, которую совершают проектировщики
абсолютно надежных систем, - недооценка изобретательности клинических идиотов.

2

newzenon, прежде, чем продолжить, приведите конфигурационный файл /etc/conf.d/net в соответствии с правилами синтаксиса, описанными в /usr/share/doc/openrc-НОМЕР_ВЕРСИИ/net.example.bz2

Был, был и весь вышел...

3

newzenon
Я в свое время делал через /etc/rc.local (просто прописывал pppoe-start)

4

Lupo Alberto, ничего не изменилось, для чистоты всё таки сделал, согласно моему /usr/share/doc/openrc-0.9.3-r1/net.example.bz2 поправил, в принципе только скобки убраны.

modules="ifconfig"
config_eth0="192.168.0.1 netmask 255.255.255.0"
config_eth1="adsl"
adsl_user_eth1="vXXXXXX"

postup() {
 if [ "${IFACE}" = "eth1" ]; then
    /usr/local/sbin/zfirewall
 fi
 return 0
}

Всё также - pppoe включается ровно через один reboot.

Кусок лога 1 - pppoe не подключился:

rc default logging started at Mon Sep 12 15:37:09 2011

vixie-cron      | * Starting vixie-cron ...
udev-postmount  | * Doing udev cleanups
net.eth1        | * Bringing up interface eth1
net.eth0        | * Bringing up interface eth0
 [ ok ]
smartd          | * Use of the opts variable is deprecated and will be
smartd          | * removed in the future.
mysql           | * Starting mysql ...
smartd          | * Please use extra_commands or extra_started_commands.
smartd          | * Starting S.M.A.R.T. monitoring daemon ...
net.eth1        | *   adsl ...
net.eth0        | *   192.168.0.1 ...
 [ ok ]
net.eth0        | *   Running postup ...
net.eth1        | *     Starting ADSL for eth1
 [ ok ]
 [ ok ]
local           | * local: waiting for net.eth1 (50 seconds)
netmount        | * netmount: waiting for net.eth1 (50 seconds)
php-fpm         | * php-fpm: waiting for net.eth1 (50 seconds)
dnsmasq         | * dnsmasq: waiting for net.eth1 (50 seconds)
nginx           | * nginx: waiting for net.eth1 (50 seconds)
local           | * local: waiting for net.eth1 (41 seconds)
netmount        | * netmount: waiting for net.eth1 (41 seconds)
php-fpm         | * php-fpm: waiting for net.eth1 (41 seconds)
nginx           | * nginx: waiting for net.eth1 (41 seconds)
dnsmasq         | * dnsmasq: waiting for net.eth1 (41 seconds)
local           | * local: waiting for net.eth1 (32 seconds)
netmount        | * netmount: waiting for net.eth1 (32 seconds)
php-fpm         | * php-fpm: waiting for net.eth1 (32 seconds)
nginx           | * nginx: waiting for net.eth1 (32 seconds)
dnsmasq         | * dnsmasq: waiting for net.eth1 (32 seconds)
net.eth1        |TIMED OUT
net.eth1        |/usr/sbin/pppoe-start: line 198: 16139 Terminated              $CONNECT <(echo "$CONFREAD") > /dev/null 2>&1
 [ !! ]
 [ !! ]
net.eth1        | * ERROR: net.eth1 failed to start
php-fpm         | * ERROR: cannot start php-fpm as net.eth1 would not start
dnsmasq         | * ERROR: cannot start dnsmasq as net.eth1 would not start
nginx           | * ERROR: cannot start nginx as net.eth1 would not start
netmount        | * ERROR: cannot start netmount as net.eth1 would not start
local           | * Starting local
 [ ok ]

rc default logging stopped at Mon Sep 12 15:37:43 2011

Сразу перезагружаюсь и подключается - вот следующий кусок лога:

rc default logging started at Mon Sep 12 15:40:37 2011

vixie-cron      | * Starting vixie-cron ...
net.eth0        | * Bringing up interface eth0
udev-postmount  | * Doing udev cleanups
net.eth1        | * Bringing up interface eth1
 [ ok ]
smartd          | * Use of the opts variable is deprecated and will be
smartd          | * removed in the future.
mysql           | * Starting mysql ...
smartd          | * Please use extra_commands or extra_started_commands.
net.eth0        | *   192.168.0.1 ...
net.eth1        | *   adsl ...
 [ ok ]
smartd          | * Starting S.M.A.R.T. monitoring daemon ...
net.eth0        | *   Running postup ...
net.eth1        | *     Starting ADSL for eth1
 [ ok ]
 [ ok ]
net.eth1        | *   Running postup ...
dnsmasq         | * Use of the opts variable is deprecated and will be
dnsmasq         | * removed in the future.
dnsmasq         | * Please use extra_commands or extra_started_commands.
dnsmasq         | * Starting dnsmasq ...
 [ ok ]
netmount        | * Mounting network filesystems ...
 [ ok ]
nginx           | * Use of the opts variable is deprecated and will be
nginx           | * removed in the future.
 [ ok ]
nginx           | * Please use extra_commands or extra_started_commands.
nginx           | * Checking nginx' configuration ...
 [ ok ]
nginx           | * Starting nginx ...
 [ ok ]
php-fpm         | * Use of the opts variable is deprecated and will be
php-fpm         | * removed in the future.
php-fpm         | * Please use extra_commands or extra_started_commands.
php-fpm         | * Starting PHP FastCGI Process Manager ...
 [ ok ]
 [ ok ]
local           | * Starting local
 [ ok ]

rc default logging stopped at Mon Sep 12 15:40:42 2011
История показывает, что во всем новом обычно кроется какой-то подвох.
Классическая ошибка, которую совершают проектировщики
абсолютно надежных систем, - недооценка изобретательности клинических идиотов.

5

Попробуйте удалить (либо переместить куда-либо) файл  /etc/udev/rules.d/70-persistent-net.rules и перегрузиться.

Был, был и весь вышел...

6

Lupo Alberto, это первым делом... ab
ы. У меня pppoe via eth - adsl модема нет, просто почему то способ:

config_eth1="dhcp"
dhcp_eth1="nodns nontp nonis nogateway"

config_ppp0="ppp" 
link_ppp0="eth1"
plugins_ppp0="pppoe"
username_ppp0='user'
password_ppp0='password'
pppd_ppp0=" 'usepeerdns' 'noauth' 'updetach' 'defaultroute' "

depend_ppp0() {
        need net.eth1
}

У меня не получилось завести.

История показывает, что во всем новом обычно кроется какой-то подвох.
Классическая ошибка, которую совершают проектировщики
абсолютно надежных систем, - недооценка изобретательности клинических идиотов.

7

Покажите

 Консоль:

ls -l /etc/init.d/net.*

Был, был и весь вышел...

8 (12.09.2011 16:29:07 отредактировано zenon)

 Консоль:
# ls -l /etc/init.d/net.*
lrwxrwxrwx 1 root root     6 Сен 12 13:12 /etc/init.d/net.eth1 -> net.lo*
-rwxr-xr-x 1 root root 15830 Сен 11 18:41 /etc/init.d/net.lo*
lrwxrwxrwx 1 root root     6 Сен 12 13:21 /etc/init.d/net.ppp0 -> net.lo*

История показывает, что во всем новом обычно кроется какой-то подвох.
Классическая ошибка, которую совершают проектировщики
абсолютно надежных систем, - недооценка изобретательности клинических идиотов.

9

newzenon пишет:

У меня pppoe via eth - adsl модема нет, просто почему то способ:

А что с ним было не так? В файле конфигурации есть небольшие синтаксические «шероховатости», я бы чуть изменил строку:

pppd_ppp0="usepeerdns noauth updetach defaultroute"

Со второй конфигурацией — если после того, как при загрузке соединение не поднялось, вручную запустить /etc/init.d/net.eth1?

Был, был и весь вышел...

10

Lupo Alberto пишет:

Со второй конфигурацией — если после того, как при загрузке соединение не поднялось, вручную запустить /etc/init.d/net.eth1?

Уже не помню, вроде делал... сейчас попробую ещё раз.

История показывает, что во всем новом обычно кроется какой-то подвох.
Классическая ошибка, которую совершают проектировщики
абсолютно надежных систем, - недооценка изобретательности клинических идиотов.

11

newzenon пишет:

сейчас попробую ещё раз.

Я неясно выразился — при использовании конфигурации, с которой начата тема, при запуске вручную соединение всякий раз устанавливается?

Был, был и весь вышел...

12 (12.09.2011 17:00:18 отредактировано zenon)

Попробовал (сразу после загрузки с неподнятым pppoe):

 Консоль:
/etc/init.d/net.eth1 start

pppoe поднялся, обработал нормально postup() (там у меня firewall), но! не поднял за собой dnsmasq, php-fpm и nginx (что при нормальном подключении поднимается вместе с eth1).
Также попробовал pppoe-start/stop - работает.
Можно конечно придумать как повторно всё это запускать, но это уже какие-то костыли, и +60 сек к загрузке.
ы. Вот главное не понятна переодичность - ровно через раз.

История показывает, что во всем новом обычно кроется какой-то подвох.
Классическая ошибка, которую совершают проектировщики
абсолютно надежных систем, - недооценка изобретательности клинических идиотов.

13

newzenon пишет:

но! не поднял за собой php-fpm и nginx (что при нормальном подключении поднимается вместе с eth1).

Они у вас скорее всего вызываются при загрузке и требуют наличия eth0-интерфейса, но никак не запускаются при его «поднятии».

newzenon пишет:

У меня pppoe via eth - adsl модема нет

Где можно почитать о технологии, по которой вы получаете Интернет?

newzenon пишет:

Вот главное не понятна переодичность - ровно через раз.

Это ни как не может быть связано с «своеобразностью» вашего провайдера? Под другими ОС/дистрибутивами проблема не воспроизводится?

Был, был и весь вышел...

14

Обычная сетевая карта, подключение pppoe, в debian такого не наблюдается, включается всегда, настройка в deb - через pppoeconf, да и в других дистрибутивах такого не наблюдал, например в федоре (NM не использовал, настройка через консоль) помню как-то ставил всё -ок.
Так что вариант неполадок с провайдером отметается.

История показывает, что во всем новом обычно кроется какой-то подвох.
Классическая ошибка, которую совершают проектировщики
абсолютно надежных систем, - недооценка изобретательности клинических идиотов.

15

Какой провайдер? Какое подключение?

ОС: Gentoo/Funtoo

16 (13.09.2011 12:42:59 отредактировано zenon)

tyrnov пишет:

Какой провайдер? Какое подключение?

ertelecom (dom.ru) http://volgograd.wizard.ertelecom.ru/?p … ge=product , остальное выше все сказал.

В итоге удалил rp-pppoe, заново поставил ppp (предварительно снес /etc/ppp).
Настроил в /etc/conf.d/net

modules="ifconfig"
config_eth1="192.168.0.1 netmask 255.255.255.0"
config_eth0="null"

config_ppp0="ppp"
link_ppp0="eth0"
plugins_ppp0="pppoe"
username_ppp0='vXXXXXX'
password_ppp0='XXXXXXXX'
pppd_ppp0="
    noauth
    defaultroute
    usepeerdns
    ipcp-accept-remote
    ipcp-accept-local
    lcp-echo-interval 15
    lcp-echo-failure 3
    persist
"

depend_ppp0() {
need net.eth0
}

postup() {
 if [ "${IFACE}" = "eth0" ]; then
    /usr/local/sbin/zfirewall
 fi
 return 0
}

Подключается вроде всегда, но warning'ов туча, последний лог:

rc sysinit logging started at Tue Sep 13 03:29:08 2011


   OpenRC 0.9.3 is starting up Gentoo Linux (x86_64)

 * /proc is already mounted, skipping
udev-mount      | * /dev is already mounted
udev            | * Starting udevd ...
 [ ok ]
udev            | * Populating /dev with existing devices through uevents ...
 [ ok ]
udev            | * Waiting for uevents to be processed ...
 [ ok ]
devfs           | * Mounting /dev/shm ...
 [ ok ]

rc sysinit logging stopped at Tue Sep 13 03:29:08 2011


rc boot logging started at Tue Sep 13 03:29:08 2011

hwclock         | * Setting system clock using the hardware clock [UTC] ...
hwclock         |hwclock: Cannot access the Hardware Clock via any known method.
hwclock         |hwclock: Use the --debug option to see the details of our search for an access method.
hwclock         | * Failed to set the system clock
 [ !! ]
hostname        | * Setting hostname to gzst ...
sysctl          | * Configuring kernel parameters ...
 [ ok ]
modules         | * Autoloaded 0 module(s)
fsck            | * Checking local filesystems  ...
 [ ok ]
root            | * Remounting root filesystem read/write ...
 [ ok ]
mtab            | * Updating /etc/mtab ...
 [ ok ]
localmount      | * Mounting local filesystems ...
 [ ok ]
swap            | * Activating swap devices ...
procfs          | * Mounting USB device filesystem [usbfs] ...
urandom         | * Initializing random number generator ...
 [ ok ]
 [ ok ]
 [ ok ]
bootmisc        | * Creating user login records ...
 [ ok ]
bootmisc        | * Cleaning /var/run ...
 [ ok ]
bootmisc        | * Wiping /tmp directory ...
 [ ok ]
termencoding    | * Setting terminal encoding [UTF-8] ...
net.lo          | * Bringing up interface lo
 [ ok ]
keymaps         | * Setting keyboard mode [UTF-8] ...
consolefont     | * Setting console font [cyr-sun16] ...
 [ ok ]
keymaps         | * Loading key mappings [ru] ...
 [ ok ]
 [ ok ]
net.lo          | *   127.0.0.1/8 ...
 [ ok ]
net.lo          | *   Adding routes
net.lo          | *     127.0.0.0/8 via 127.0.0.1 ...
 [ ok ]
net.lo          | *   Running postup ...

rc boot logging stopped at Tue Sep 13 03:29:10 2011


rc default logging started at Tue Sep 13 03:29:10 2011

udev-postmount  | * Doing udev cleanups
vixie-cron      | * Starting vixie-cron ...
net.eth0        | * Bringing up interface eth0
net.eth1        | * Bringing up interface eth1
smartd          | * Use of the opts variable is deprecated and will be
smartd          | * removed in the future.
mysql           | * Starting mysql ...
smartd          | * Please use extra_commands or extra_started_commands.
smartd          | * Starting S.M.A.R.T. monitoring daemon ...
 [ ok ]
net.eth1        | *   192.168.0.1 ...
 [ ok ]
net.eth0        | *   Running postup ...
net.eth1        | *   Running postup ...
 [ ok ]
net.eth0        |Device "ppp0" does not exist.
net.eth0        |Device "ppp0" does not exist.
 [ ok ]
net.ppp0        | * Bringing up interface ppp0
net.ppp0        | *   Starting pppd in ppp0 ...
dnsmasq         | * WARNING: dnsmasq is scheduled to start when net.ppp0 has started
netmount        | * WARNING: netmount is scheduled to start when net.ppp0 has started
nginx           | * WARNING: nginx is scheduled to start when net.ppp0 has started
php-fpm         | * WARNING: php-fpm is scheduled to start when net.ppp0 has started
 [ ok ]
net.ppp0        | *   Backgrounding ...
net.ppp0        | * WARNING: net.ppp0 has started, but is inactive
 [ ok ]
local           | * Starting local
 [ ok ]

rc default logging stopped at Tue Sep 13 03:29:14 2011
История показывает, что во всем новом обычно кроется какой-то подвох.
Классическая ошибка, которую совершают проектировщики
абсолютно надежных систем, - недооценка изобретательности клинических идиотов.

17

Раза три четыре перезагружался с тех пор, ворнинги только, а так подключается нормально.
И да вот как избавится от:

* Use of the opts variable is deprecated and will be
* removed in the future.

Практически все сервисы стартуют с этим предупреждением.

История показывает, что во всем новом обычно кроется какой-то подвох.
Классическая ошибка, которую совершают проектировщики
абсолютно надежных систем, - недооценка изобретательности клинических идиотов.

18

newzenon, покажите полный лог.

Был, был и весь вышел...

19

Lupo Alberto, Ничего не менял такой же - http://linuxforum.ru/viewtopic.php?pid=211535#p211535

История показывает, что во всем новом обычно кроется какой-то подвох.
Классическая ошибка, которую совершают проектировщики
абсолютно надежных систем, - недооценка изобретательности клинических идиотов.

20

newzenon пишет:

smartd |
* Use of the opts variable is deprecated and will be smartd |
* removed in the future.

Я только один заметил  oO

Покажите версии sys-apps/smartmontools, openrc и baselayout
Покажите файл /etc/smartd.conf

Был, был и весь вышел...

21

sys-apps/baselayout-2.0.3
sys-apps/openrc-0.9.3-r1
История показывает, что во всем новом обычно кроется какой-то подвох.
Классическая ошибка, которую совершают проектировщики
абсолютно надежных систем, - недооценка изобретательности клинических идиотов.

22

Покажите всё же версию sys-apps/smartmontools.
Остановите сервис smartd

 Консоль:

/etc/init.d/smartd stop

а затем запустите так
 Консоль:

/etc/init.d/smartd -d start

Вывод покажите.
Также хотелось бы увидеть /etc/rc.conf.

Был, был и весь вышел...

23

Команда etc-update не предлагает обновить конфигурационные файлы?

Был, был и весь вышел...

24

sys-apps/smartmontools-5.41
# /etc/init.d/smartd stop
smartd          | * Use of the opts variable is deprecated and will be
smartd          | * removed in the future.
smartd          | * Please use extra_commands or extra_started_commands.
smartd          | * Stopping S.M.A.R.T. monitoring daemon ...               [ ok ]
#
# /etc/init.d/smartd -d start
smartd          |+ loadconfig /etc/init.d/../conf.d
smartd          |+ _c=smartd
smartd          |+ '[' -n smartd -a smartd '!=' smartd ']'
smartd          |+ unset _c
smartd          |+ sourcex -e /etc/init.d/../conf.d/smartd.default
smartd          |+ '[' -e = -e ']'
smartd          |+ shift
smartd          |+ '[' -e /etc/init.d/../conf.d/smartd.default ']'
smartd          |+ return 1
smartd          |+ sourcex -e /etc/init.d/../conf.d/smartd
smartd          |+ '[' -e = -e ']'
smartd          |+ shift
smartd          |+ '[' -e /etc/init.d/../conf.d/smartd ']'
smartd          |+ . /etc/init.d/../conf.d/smartd
smartd          |++ SMARTD_OPTS=
smartd          |+ sourcex -e /etc/rc.conf
smartd          |+ '[' -e = -e ']'
smartd          |+ shift
smartd          |+ '[' -e /etc/rc.conf ']'
smartd          |+ . /etc/rc.conf
smartd          |++ rc_parallel=YES
smartd          |++ rc_shell=/sbin/sulogin
smartd          |++ rc_hotplug='!net.*'
smartd          |++ rc_logger=YES
smartd          |++ unicode=YES
smartd          |++ rc_sys=
smartd          |++ rc_tty_number=12
smartd          |+ '[' -n '' ']'
smartd          |+ sourcex /etc/init.d/smartd
smartd          |+ '[' /etc/init.d/smartd = -e ']'
smartd          |+ . /etc/init.d/smartd
smartd          |++ opts=' reload'
smartd          |+ unset _d
smartd          |+ unset _f
smartd          |+ '[' -n ' reload' ']'
smartd          |+ ewarn 'Use of the opts variable is deprecated and will be'
smartd          | * Use of the opts variable is deprecated and will be
smartd          |+ ewarn 'removed in the future.'
smartd          | * removed in the future.
smartd          |+ ewarn 'Please use extra_commands or extra_started_commands.'
smartd          | * Please use extra_commands or extra_started_commands.
smartd          |+ '[' -n start ']'
smartd          |+ '[' start = depend ']'
smartd          |+ for _cmd in describe start stop status '${extra_commands:-$opts}' '$extra_started_commands'
smartd          |+ '[' describe = start ']'
smartd          |+ for _cmd in describe start stop status '${extra_commands:-$opts}' '$extra_started_commands'
smartd          |+ '[' start = start ']'
smartd          |++ command -v start
smartd          |+ '[' start = start ']'
smartd          |+ yesno
smartd          |+ '[' -z '' ']'
smartd          |+ return 1
smartd          |+ unset _cmd
smartd          |++ command -v start_pre
smartd          |+ '[' '' = start_pre ']'
smartd          |+ start
smartd          |+ checkconfig
smartd          |+ '[' '!' -f /etc/smartd.conf ']'
smartd          |+ return 0
smartd          |+ ebegin 'Starting S.M.A.R.T. monitoring daemon'
smartd          | * Starting S.M.A.R.T. monitoring daemon ...
smartd          |+ start-stop-daemon --start --exec /usr/sbin/smartd --pidfile /var/run/smartd.pid -- -p /var/run/smartd.pid
smartd          |+ eend 0                                                   [ ok ]
smartd          |++ command -v start_post
smartd          |+ '[' '' = start_post ']'
smartd          |+ shift
smartd          |+ continue 2
smartd          |+ '[' -n '' ']'
#

cat /etc/rc.conf

# Global OpenRC configuration settings

# Set to "YES" if you want the rc system to try and start services
# in parallel for a slight speed improvement. When running in parallel we
# prefix the service output with its name as the output will get
# jumbled up.
# WARNING: whilst we have improved parallel, it can still potentially lock
# the boot process. Don't file bugs about this unless you can supply
# patches that fix it without breaking other things!
rc_parallel="YES"

# Set rc_interactive to "YES" and you'll be able to press the I key during
# boot so you can choose to start specific services. Set to "NO" to disable
# this feature. This feature is automatically disabled if rc_parallel is
# set to YES.
#rc_interactive="YES"

# If we need to drop to a shell, you can specify it here.
# If not specified we use $SHELL, otherwise the one specified in /etc/passwd,
# otherwise /bin/sh
# Linux users could specify /sbin/sulogin
rc_shell=/sbin/sulogin

# Do we allow any started service in the runlevel to satisfy the dependency
# or do we want all of them regardless of state? For example, if net.eth0
# and net.eth1 are in the default runlevel then with rc_depend_strict="NO"
# both will be started, but services that depend on 'net' will work if either
# one comes up. With rc_depend_strict="YES" we would require them both to
# come up.
#rc_depend_strict="YES"

# rc_hotplug is a list of services that we allow to be hotplugged.
# By default we do not allow hotplugging.
# A hotplugged service is one started by a dynamic dev manager when a matching
# hardware device is found.
# This service is intrinsically included in the boot runlevel.
# To disable services, prefix with a !
# Example - rc_hotplug="net.wlan !net.*"
# This allows net.wlan and any service not matching net.* to be plugged.
# Example - rc_hotplug="*"
# This allows all services to be hotplugged
rc_hotplug="!net.*"

# rc_logger launches a logging daemon to log the entire rc process to
# /var/log/rc.log
# NOTE: Linux systems require the devfs service to be started before
# logging can take place and as such cannot log the sysinit runlevel.
rc_logger="YES"

# Through rc_log_path you can specify a custom log file.
# The default value is: /var/log/rc.log
#rc_log_path="/var/log/rc.log"

# By default we filter the environment for our running scripts. To allow other
# variables through, add them here. Use a * to allow all variables through.
#rc_env_allow="VAR1 VAR2"

# By default we assume that all daemons will start correctly.
# However, some do not - a classic example is that they fork and return 0 AND
# then child barfs on a configuration error. Or the daemon has a bug and the
# child crashes. You can set the number of milliseconds start-stop-daemon
# waits to check that the daemon is still running after starting here.
# The default is 0 - no checking.
#rc_start_wait=100

# rc_nostop is a list of services which will not stop when changing runlevels.
# This still allows the service itself to be stopped when called directly.
#rc_nostop=""

# rc will attempt to start crashed services by default.
# However, it will not stop them by default as that could bring down other
# critical services.
#rc_crashed_stop=NO
#rc_crashed_start=YES

##############################################################################
# MISC CONFIGURATION VARIABLES
# There variables are shared between many init scripts

# Set unicode to YES to turn on unicode support for keyboards and screens.
unicode="YES"

# Below is the default list of network fstypes.
#
# afs cifs coda davfs fuse fuse.sshfs gfs glusterfs lustre ncpfs
# nfs nfs4 ocfs2 shfs smbfs
#
# If you would like to add to this list, you can do so by adding your
# own fstypes to the following variable.
#extra_net_fs_list=""

##############################################################################
# SERVICE CONFIGURATION VARIABLES
# These variables are documented here, but should be configured in
# /etc/conf.d/foo for service foo and NOT enabled here unless you
# really want them to work on a global basis.

# Some daemons are started and stopped via start-stop-daemon.
# We can set some things on a per service basis, like the nicelevel.
#export SSD_NICELEVEL="-19"

# Pass ulimit parameters
#rc_ulimit="-u 30"

# It's possible to define extra dependencies for services like so
#rc_config="/etc/foo"
#rc_need="openvpn"
#rc_use="net.eth0"
#rc_after="clock"
#rc_before="local"
#rc_provide="!net"

# You can also enable the above commands here for each service. Below is an
# example for service foo.
#rc_foo_config="/etc/foo"
#rc_foo_need="openvpn"
#rc_foo_after="clock"

# You can also remove dependencies.
# This is mainly used for saying which servies do NOT provide net.
#rc_net_tap0_provide="!net"

##############################################################################
# LINUX SPECIFIC OPTIONS

# This is the subsystem type. Valid options on Linux:
# ""        - nothing special
# "lxc"     - Linux Containers
# "openvz"  - Linux OpenVZ
# "prefix"  - Prefix
# "uml"     - Usermode Linux
# "vserver" - Linux vserver
# "xen0"    - Xen0 Domain
# "xenU"    - XenU Domain
# If this is commented out, automatic detection will be attempted.
# Note that autodetection will not work in a prefix environment or in a
# linux container.
#
# This should be set to the value representing the environment this file is
# PRESENTLY in, not the virtualization the environment is capable of.
rc_sys=""

# This is the number of tty's used in most of the rc-scripts (like
# consolefont, numlock, etc ...)
rc_tty_number=12

Lupo Alberto пишет:

Команда etc-update не предлагает обновить конфигурационные файлы?

Когда предлагает - сразу выполняю.

История показывает, что во всем новом обычно кроется какой-то подвох.
Классическая ошибка, которую совершают проектировщики
абсолютно надежных систем, - недооценка изобретательности клинических идиотов.

25

Синхронизируйте дерево portage и обновите «мир» — часть проблем должна решиться.

Был, был и весь вышел...

26 (16.09.2011 00:44:39 отредактировано zenon)

Lupo Alberto, Вчера только полностью обновлялся...
Сейчас ещё обновления:

# emerge -auDNv @world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] sys-apps/portage-2.1.10.18 [2.1.10.16] USE="(ipc) less -build -doc -epydoc -python2 -python3 (-selinux)" LINGUAS="-pl" 849 kB
*** Portage will stop merging at this point and reload itself,
    then resume the merge.
[ebuild     U  ] media-libs/audiofile-0.3.0 [0.2.7] USE="-static-libs" 703 kB
[ebuild     U  ] app-text/hunspell-1.3.2-r2 [1.3.2-r1] USE="ncurses nls readline -static-libs" LINGUAS="en ru -af -bg -ca -cs -cy -da -de -el -eo -es -et -fo -fr -ga -gl -he -hr -hu -ia -id -it -ku -lt -lv -mk -ms -nb -nl -nn -pl -pt -ro -sk -sl -sv -sw -tn -uk -zu" 0 kB
[ebuild     U  ] sys-apps/gawk-4.0.0 [3.1.8] USE="nls" 0 kB
[ebuild     U  ] www-client/lynx-2.8.8_pre9 [2.8.8_pre5] USE="bzip2 nls ssl unicode -cjk -gnutls -idn -ipv6" 2,463 kB
[ebuild     U  ] www-client/chromium-14.0.835.163 [14.0.835.162] USE="-cups -gnome -gnome-keyring -kerberos -test" LINGUAS="ru -am -ar -bg -bn -ca -cs -da -de -el -en_GB -es -es_LA -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -nb -nl -pl -pt_BR -pt_PT -ro -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh_CN -zh_TW" 152,216 kB
[ebuild     U  ] sys-apps/smartmontools-5.41-r1 [5.41] USE="-caps -minimal -static" 0 kB
[ebuild     U  ] sys-power/upower-0.9.13-r1 [0.9.13] USE="introspection -debug -doc -ios" 0 kB
[ebuild     U  ] sys-fs/udisks-1.0.4-r1 [1.0.4] USE="nls -bash-completion -debug -doc -remote-access" 0 kB
[ebuild     U  ] net-misc/openssh-5.8_p2-r1 [5.8_p2] USE="X hpn ldap pam tcpd -X509 -kerberos -libedit (-selinux) -skey -static" 0 kB
[ebuild     U  ] app-emulation/wine-1.3.28 [1.3.27] USE="X alsa dbus gecko jpeg lcms ldap mp3 ncurses opengl oss perl png ssl threads truetype win32 win64 xml -capi -cups -custom-cflags -fontconfig -gnutls -gphoto2 -gsm (-gstreamer) (-hal) -hardened (-nls) -openal -opencl -samba -scanner -test -v4l -xcomposite -xinerama" 19,167 kB

Total: 11 packages (11 upgrades), Size of downloads: 175,396 kB

WARNING: One or more updates have been skipped due to a dependency conflict:

x11-base/xorg-server:0

  (x11-base/xorg-server-1.11.0::gentoo, ebuild scheduled for merge) conflicts with
    <x11-base/xorg-server-1.10.99 required by (x11-drivers/nvidia-drivers-285.03::gentoo, installed)

Посмотрим.
Chromium блин опять обновление - только вчера собирал... ac

История показывает, что во всем новом обычно кроется какой-то подвох.
Классическая ошибка, которую совершают проектировщики
абсолютно надежных систем, - недооценка изобретательности клинических идиотов.

27

В sys-apps/smartmontools поменялись скрипты инициализации, предупреждения должны исчезнуть.
Остальное ждите, или «откатите» openrc  wink

Был, был и весь вышел...

28

Будем ждать, пусть ругается, на работоспособности не сказывается.

# /etc/init.d/nginx restart
nginx           | * Caching service dependencies ...                                                                                                                                                        [ ok ]
nginx           | * Use of the opts variable is deprecated and will be
nginx           | * removed in the future.
nginx           | * Please use extra_commands or extra_started_commands.
nginx           | * Checking nginx' configuration ...                                                                                                                                                       [ ok ]
nginx           | * Stopping nginx ...                                                                                                                                                                      [ ok ]
nginx           | * Use of the opts variable is deprecated and will be
nginx           | * removed in the future.
nginx           | * Please use extra_commands or extra_started_commands.
nginx           | * Starting nginx ...              

smile

История показывает, что во всем новом обычно кроется какой-то подвох.
Классическая ошибка, которую совершают проектировщики
абсолютно надежных систем, - недооценка изобретательности клинических идиотов.

29

Пришлось вернуться опять к этой теме.

# uname -a
Linux HGATE 3.7.10-gentoo #1 SMP Fri Mar 15 01:59:45 MSK 2013 x86_64 AMD Phenom(tm) II X4 925 Processor AuthenticAMD GNU/Linux

Лог:

# cat /var/log/syslog-ng/messages | grep ppp
Mar 15 17:18:07 WORKGROUP pppd[19312]: PPP session is 11
Mar 15 17:18:07 WORKGROUP pppd[19312]: Connected to 14:da:e9:04:a4:17 via interface eth0
Mar 15 17:18:07 WORKGROUP pppd[19312]: Using interface ppp0
Mar 15 17:18:07 WORKGROUP pppd[19312]: Connect: ppp0 <--> eth0
Mar 15 17:18:10 WORKGROUP pppd[19312]: CHAP authentication failed
Mar 15 17:18:10 WORKGROUP pppd[19312]: Connection terminated.
Mar 15 17:18:28 WORKGROUP /etc/init.d/net.ppp0[20172]: status: inactive
Mar 15 17:18:28 WORKGROUP /etc/init.d/net.ppp0[20173]: WARNING: net.ppp0 has already started, but is inactive
Mar 15 17:18:40 WORKGROUP pppd[19312]: PPP session is 12
Mar 15 17:18:40 WORKGROUP pppd[19312]: Connected to 14:da:e9:04:a4:17 via interface eth0
Mar 15 17:18:40 WORKGROUP pppd[19312]: Using interface ppp0
Mar 15 17:18:40 WORKGROUP pppd[19312]: Connect: ppp0 <--> eth0
Mar 15 17:18:43 WORKGROUP pppd[19312]: CHAP authentication failed
Mar 15 17:18:43 WORKGROUP pppd[19312]: Connection terminated.
Mar 15 17:19:13 WORKGROUP pppd[19312]: PPP session is 13
Mar 15 17:19:13 WORKGROUP pppd[19312]: Connected to 14:da:e9:04:a4:17 via interface eth0
Mar 15 17:19:13 WORKGROUP pppd[19312]: Using interface ppp0
Mar 15 17:19:13 WORKGROUP pppd[19312]: Connect: ppp0 <--> eth0
Mar 15 17:19:16 WORKGROUP pppd[19312]: CHAP authentication failed
Mar 15 17:19:16 WORKGROUP pppd[19312]: Connection terminated.
Mar 15 17:19:32 WORKGROUP pppd[19312]: Terminating on signal 15
Mar 15 17:19:32 WORKGROUP pppd[19312]: Exit.
Mar 15 17:19:32 WORKGROUP pppd[21179]: Plugin rp-pppoe.so loaded.
Mar 15 17:19:32 WORKGROUP pppd[21179]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
Mar 15 17:19:32 WORKGROUP pppd[21179]: Plugin passwordfd.so loaded.
Mar 15 17:19:32 WORKGROUP pppd[21180]: pppd 2.4.5 started by root, uid 0
Mar 15 17:19:32 WORKGROUP pppd[21180]: PPP session is 14
Mar 15 17:19:32 WORKGROUP pppd[21180]: Connected to 14:da:e9:04:a4:17 via interface eth0
Mar 15 17:19:32 WORKGROUP pppd[21180]: Using interface ppp0
Mar 15 17:19:32 WORKGROUP pppd[21180]: Connect: ppp0 <--> eth0
Mar 15 17:19:32 WORKGROUP /etc/init.d/net.ppp0[20889]: WARNING: net.ppp0 has started, but is inactive
Mar 15 17:19:35 WORKGROUP pppd[21180]: CHAP authentication failed
Mar 15 17:19:35 WORKGROUP pppd[21180]: Connection terminated.
Mar 15 17:20:05 WORKGROUP pppd[21180]: PPP session is 15
Mar 15 17:20:05 WORKGROUP pppd[21180]: Connected to 14:da:e9:04:a4:17 via interface eth0
Mar 15 17:20:05 WORKGROUP pppd[21180]: Using interface ppp0
Mar 15 17:20:05 WORKGROUP pppd[21180]: Connect: ppp0 <--> eth0
Mar 15 17:20:08 WORKGROUP pppd[21180]: CHAP authentication failed
Mar 15 17:20:08 WORKGROUP pppd[21180]: Connection terminated.
Mar 15 17:21:57 WORKGROUP ntpd[19878]: Listen normally on 4 ppp0 88.87.92.60 UDP 123
Mar 15 17:22:01 WORKGROUP /etc/init.d/net.ppp0[20185]: status: inactive
Mar 15 17:22:01 WORKGROUP /etc/init.d/net.ppp0[20186]: WARNING: net.ppp0 has already started, but is inactive

..
..
Попробую с хронологией:
Очистил лог, reboot (доступ в инет был):

Mar 15 17:18:07 WORKGROUP pppd[19312]: PPP session is 11
Mar 15 17:18:07 WORKGROUP pppd[19312]: Connected to 14:da:e9:04:a4:17 via interface eth0
Mar 15 17:18:07 WORKGROUP pppd[19312]: Using interface ppp0
Mar 15 17:18:07 WORKGROUP pppd[19312]: Connect: ppp0 <--> eth0
Mar 15 17:18:10 WORKGROUP pppd[19312]: CHAP authentication failed
Mar 15 17:18:10 WORKGROUP pppd[19312]: Connection terminated.

загрузка, попытка руками рестартануть руками /etc/init.d/net.eth0 restart, - сеть так и не появилась:

Mar 15 17:18:28 WORKGROUP /etc/init.d/net.ppp0[20172]: status: inactive
Mar 15 17:18:28 WORKGROUP /etc/init.d/net.ppp0[20173]: WARNING: net.ppp0 has already started, but is inactive
Mar 15 17:18:40 WORKGROUP pppd[19312]: PPP session is 12
Mar 15 17:18:40 WORKGROUP pppd[19312]: Connected to 14:da:e9:04:a4:17 via interface eth0
Mar 15 17:18:40 WORKGROUP pppd[19312]: Using interface ppp0
Mar 15 17:18:40 WORKGROUP pppd[19312]: Connect: ppp0 <--> eth0
Mar 15 17:18:43 WORKGROUP pppd[19312]: CHAP authentication failed
Mar 15 17:18:43 WORKGROUP pppd[19312]: Connection terminated.
Mar 15 17:19:13 WORKGROUP pppd[19312]: PPP session is 13
Mar 15 17:19:13 WORKGROUP pppd[19312]: Connected to 14:da:e9:04:a4:17 via interface eth0
Mar 15 17:19:13 WORKGROUP pppd[19312]: Using interface ppp0
Mar 15 17:19:13 WORKGROUP pppd[19312]: Connect: ppp0 <--> eth0
Mar 15 17:19:16 WORKGROUP pppd[19312]: CHAP authentication failed
Mar 15 17:19:16 WORKGROUP pppd[19312]: Connection terminated.
Mar 15 17:19:32 WORKGROUP pppd[19312]: Terminating on signal 15
Mar 15 17:19:32 WORKGROUP pppd[19312]: Exit.
Mar 15 17:19:32 WORKGROUP pppd[21179]: Plugin rp-pppoe.so loaded.
Mar 15 17:19:32 WORKGROUP pppd[21179]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
Mar 15 17:19:32 WORKGROUP pppd[21179]: Plugin passwordfd.so loaded.
Mar 15 17:19:32 WORKGROUP pppd[21180]: pppd 2.4.5 started by root, uid 0
Mar 15 17:19:32 WORKGROUP pppd[21180]: PPP session is 14
Mar 15 17:19:32 WORKGROUP pppd[21180]: Connected to 14:da:e9:04:a4:17 via interface eth0
Mar 15 17:19:32 WORKGROUP pppd[21180]: Using interface ppp0
Mar 15 17:19:32 WORKGROUP pppd[21180]: Connect: ppp0 <--> eth0
Mar 15 17:19:32 WORKGROUP /etc/init.d/net.ppp0[20889]: WARNING: net.ppp0 has started, but is inactive
Mar 15 17:19:35 WORKGROUP pppd[21180]: CHAP authentication failed
Mar 15 17:19:35 WORKGROUP pppd[21180]: Connection terminated.

после ребута (сеть появилась! хоть и CHAP authentication failed)

Mar 15 17:20:05 WORKGROUP pppd[21180]: PPP session is 15
Mar 15 17:20:05 WORKGROUP pppd[21180]: Connected to 14:da:e9:04:a4:17 via interface eth0
Mar 15 17:20:05 WORKGROUP pppd[21180]: Using interface ppp0
Mar 15 17:20:05 WORKGROUP pppd[21180]: Connect: ppp0 <--> eth0
Mar 15 17:20:08 WORKGROUP pppd[21180]: CHAP authentication failed
Mar 15 17:20:08 WORKGROUP pppd[21180]: Connection terminated.
Mar 15 17:21:57 WORKGROUP ntpd[19878]: Listen normally on 4 ppp0 88.87.92.60 UDP 123
Mar 15 17:22:01 WORKGROUP /etc/init.d/net.ppp0[20185]: status: inactive
Mar 15 17:22:01 WORKGROUP /etc/init.d/net.ppp0[20186]: WARNING: net.ppp0 has already started, but is inactive
# cat /etc/conf.d/net
config_eth1="192.168.0.1 netmask 255.255.255.0"
routes_eth1="default via 192.168.0.1"
config_eth0="null"
config_ppp0="ppp"
link_ppp0="eth0"
plugins_ppp0="pppoe"
username_ppp0='vXXXXXX'
password_ppp0='XXXXXX'
rc_net_ppp0_need="net.eth0"
rc_net_eth0_need="net.lo"
metric_ppp0=0
pppd_ppp0="
    noauth
    defaultroute
    usepeerdns
    ipcp-accept-remote
    ipcp-accept-local
    lcp-echo-interval 15
    lcp-echo-failure 3
    persist
 "

Как-то все не правильно.

История показывает, что во всем новом обычно кроется какой-то подвох.
Классическая ошибка, которую совершают проектировщики
абсолютно надежных систем, - недооценка изобретательности клинических идиотов.

30

Вот что хотел, гентушная настройка conf.d/net смотрит в /etc/ppp или игнорирует то что там?
Ну вот почему надо обязательно net юзать, генту-вейно если...
Например в deb реализация - postup - pon provider... И что интересно работает без нареканий... Надо там подсмотреть, что за конфиг создает pppoeconf.

История показывает, что во всем новом обычно кроется какой-то подвох.
Классическая ошибка, которую совершают проектировщики
абсолютно надежных систем, - недооценка изобретательности клинических идиотов.