1 (29.01.2012 08:45:38 отредактировано Nigelist)

Искал в Google решение по ошибке стартовых скриптов, которая есть после установки сервера 1С:Предприятие и PostgreSQL. Везде пишут, что данные ошибки на работу не влияют, но никто не знает как ее решить. Может кто-нибудь из форумчан, что-нибудь подскажет?

 Консоль:
update-rc.d: using dependency based boot sequencing
insserv: warning: script 'K02postgresql' missing LSB tags and overrides
insserv: warning: script 'srv1cv82' missing LSB tags and overrides
insserv: warning: script 'postgresql.outformat' missing LSB tags and overrides
insserv: warning: script 'postgresql' missing LSB tags and overrides

2

Вот примерно такое должно быть в начале каждого скрипта автозагрузки - это и есть LSB tags

### BEGIN INIT INFO
# Provides: ramlog
# Required-Start:
# Should-Start: $local_fs
# X-Start-Before: $syslog
# X-Stop-After: $syslog
# X-Interactive: yes
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: moves /var/log into ramdisk
# Description: ramlog daemon moves /var/log to ramdisk on startup and copies it back to harddrive on shutdown or restart

немного поподробнее (рус) http://wiki.dieg.info/doku.php/update-rc.d

3

allflow, не получается.

 Консоль:
using dependency based boot sequencing
insserv: Script postgresql is broken: missing end of LSB comment.
insserv: exiting now!
update-rc.d: error: insserv rejected the script header

4 (29.01.2012 08:52:43 отредактировано Nigelist)

allflow, оказывается должен быть и закрывающий комментарий:

 Консоль:
### END INIT INFO

В общем у меня работает так:

 Консоль:
### BEGIN INIT INFO
# Provides:          myscript
# Required-Start:
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:      1 0 6
# Short-Description: simple description.
### END INIT INFO

Проблема решена! Спасибо allflow!!!

5

Народ, а кто нибудь может пояснить для чего нужны эти LSB-теги и как их настраивать? Дело в том, что у меня перестал запускаться скрипт с LSB-тегами при включении сервера.

6

Для скрипта запуска сервера 1С:Предприятие добавил такие теги:

 Консоль:
### BEGIN INIT INFO
# Provides: ramlog
# Required-Start:
# Should-Start: $local_fs
# X-Start-Before: $syslog
# X-Stop-After: $syslog
# X-Interactive: yes
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: moves /var/log into ramdisk
# Description: ramlog daemon moves /var/log to ramdisk on startup and copies it$
### END INIT INFO

Вроде работает.