Bug 4147 - неверные скрипты
Summary: неверные скрипты
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: net-scripts (show other bugs)
Version: unstable
Hardware: all Linux
: P2 minor
Assignee: Denis Ovsienko
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-13 13:23 MSD by inger@altlinux.org
Modified: 2009-05-10 09:32 MSD (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description inger@altlinux.org 2004-05-13 13:23:37 MSD
if [ $1 -ge 2 ]; then 
        /usr/sbin/control-dump usernetctl 
fi 
postinstall scriptlet (through /bin/sh): 
if [ $1 -ge 2 ]; then 
        /usr/sbin/control-restore usernetctl 
else 
        /sbin/chkconfig --add network 
        /sbin/chkconfig --add netfs 
fi 
preuninstall scriptlet (through /bin/sh): 
if [ $1 -eq 0 ]; then 
        /sbin/chkconfig --del netfs 
        /sbin/chkconfig --del network 
 
не используются стандартные макросы %post/%preun_service
Comment 1 Denis Ovsienko 2004-05-16 17:56:35 MSD
Я тут почитал и мне кажется, что по-другому нельзя. Вот это из
/usr/sbin/post_service:
/sbin/service "$1" condrestart ||:
При таких обстоятельствах можно будет обновлять net-scripts только с физической
консоли. Стоит ли только для порядка заводить пустой condrestart/condstop?
Comment 2 inger@altlinux.org 2004-05-24 13:45:09 MSD
ну тогда оставим