* [Comm] rc.local
@ 2003-03-24 8:19 aek
2003-03-24 11:43 ` Serhii Hlodin
2003-03-24 14:38 ` [Comm] rc.local Michael Shigorin
0 siblings, 2 replies; 5+ messages in thread
From: aek @ 2003-03-24 8:19 UTC (permalink / raw)
To: community
Hello community,
Положил в сабж команду:
/usr/upsman/psp/psp -s -start mon com
(вешает в память демона UPS)
если запускаю под рутом из командн. строки - работает.
Перегружаю комп - вигвам!
Где что смотреть?
/etc/rc.d/rc3.d/@S99local - присутствует...
/etc/rc.d/init.d/local - не трогал...
--
Всех благ!
Анатолий
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] rc.local
2003-03-24 8:19 [Comm] rc.local aek
@ 2003-03-24 11:43 ` Serhii Hlodin
2003-03-25 3:04 ` Re[2]: " aek
2003-03-24 14:38 ` [Comm] rc.local Michael Shigorin
1 sibling, 1 reply; 5+ messages in thread
From: Serhii Hlodin @ 2003-03-24 11:43 UTC (permalink / raw)
To: community
>>>>> "a" == aek writes:
a> Положил в сабж команду: /usr/upsman/psp/psp -s -start mon com
a> (вешает в память демона UPS) если запускаю под рутом из
a> командн. строки - работает. Перегружаю комп - вигвам! Где что
a> смотреть? /etc/rc.d/rc3.d/@S99local - присутствует...
a> /etc/rc.d/init.d/local - не трогал...
Атрибуты какие? Право на выполнение есть? Кому? Содержимое (полное)
файла /etc/rc.d/rc.local
--
With best regards,
Serhii Hlodin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re[2]: [Comm] rc.local
2003-03-24 11:43 ` Serhii Hlodin
@ 2003-03-25 3:04 ` aek
2003-03-25 11:38 ` Serhii Hlodin
0 siblings, 1 reply; 5+ messages in thread
From: aek @ 2003-03-25 3:04 UTC (permalink / raw)
To: Serhii Hlodin
Hello Serhii,
Monday, March 24, 2003, 6:43:46 PM, you wrote:
SH> a> Положил в сабж команду: /usr/upsman/psp/psp -s -start mon com
SH> a> (вешает в память демона UPS) если запускаю под рутом из
SH> a> командн. строки - работает. Перегружаю комп - вигвам! Где что
SH> a> смотреть? /etc/rc.d/rc3.d/@S99local - присутствует...
SH> a> /etc/rc.d/init.d/local - не трогал...
SH> Атрибуты какие? Право на выполнение есть? Кому? Содержимое (полное)
SH> файла /etc/rc.d/rc.local
[root@r rc.d]# ls -la /etc/rc.d
????? 72
drwxr-xr-x 11 root root 4096 ??? 6 13:52 .
drwxr-xr-x 49 root root 4096 ??? 25 06:13 ..
drwxr-xr-x 2 root root 4096 ??? 4 11:34 init.d
-rwxr-xr-x 1 root root 3868 ??? 4 2002 rc
drwxr-xr-x 2 root root 4096 ??? 4 11:34 rc0.d
drwxr-xr-x 2 root root 4096 ??? 4 11:34 rc1.d
drwxr-xr-x 2 root root 4096 ??? 4 11:34 rc2.d
drwxr-xr-x 2 root root 4096 ??? 24 12:47 rc3.d
drwxr-xr-x 2 root root 4096 ??? 4 11:34 rc4.d
drwxr-xr-x 2 root root 4096 ??? 4 11:34 rc5.d
drwxr-xr-x 2 root root 4096 ??? 4 11:34 rc6.d
-rwxr-xr-x 1 root root 471 ??? 24 13:45 rc.local
-rwxr-xr-x 1 root root 616 ??? 16 2002 rc.powerfail
-rwxr-xr-x 1 root root 13778 ??? 15 2002 rc.sysinit
drwxr-xr-x 2 root root 4096 ??? 5 20:18 scripts
[root@r rc.d]# cat rc.local
#!/bin/sh
#
/usr/upsman/psp/psp -s -start mon com
....другие команды....
Этот файлик при загрузке выполняется. Так как результат
"других команд" я наблюдаю. Если под рутом дать команду
/etc/rc.d/rc.local то этот драйвер в памяти остается,
а вот при загрузке - фиг. В чем может быть разница?
[root@r rc3.d]# ls -la /etc/rc.d/rc3.d/*local
lrwxrwxrwx 1 root root 15 ??? 5 20:14 /etc/rc.d/rc3.d/S99local
-> ../init.d/local
[root@r init.d]# ls -la /etc/rc.d/init.d/*local
-rwxr-xr-x 1 root root 2077 ??? 15 2002 /etc/rc.d/init.d/local
--
Всех благ!
Анатолий
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Re[2]: [Comm] rc.local
2003-03-25 3:04 ` Re[2]: " aek
@ 2003-03-25 11:38 ` Serhii Hlodin
0 siblings, 0 replies; 5+ messages in thread
From: Serhii Hlodin @ 2003-03-25 11:38 UTC (permalink / raw)
To: community
1. Проверь содержимое /var/lock/subsys. Есть ли там файл local или
local.init. Если есть -- удали.
2. Проверь содержимое /etc/rc.d/rc. Там долно быть условие (107-113):
if [ "$subsys" = "halt" -o "$subsys" = "reboot" -o "$subsys" = "single" -o "$subsys" = "local" ] \
|| egrep -q '(action|daemon) ' "$i"; then
"$i" start
else
action "Starting $subsys:" "$i" start
fi
3. Проверь /etc/rc.d/init.d/local. Последняя строчка должна быть:
ExecIfExecutable /etc/rc.d/rc.local
Функция ExecIfExecutable() описывается в /etc/init.d/functions
--
With best regards,
Serhii Hlodin
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Comm] Re: rc.local
2003-03-24 8:19 [Comm] rc.local aek
2003-03-24 11:43 ` Serhii Hlodin
@ 2003-03-24 14:38 ` Michael Shigorin
1 sibling, 0 replies; 5+ messages in thread
From: Michael Shigorin @ 2003-03-24 14:38 UTC (permalink / raw)
To: community
On Mon, Mar 24, 2003 at 03:19:27PM +0700, aek wrote:
> /etc/rc.d/init.d/local - не трогал...
потрогайте и chmod +x на него :)
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-03-25 11:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-24 8:19 [Comm] rc.local aek
2003-03-24 11:43 ` Serhii Hlodin
2003-03-25 3:04 ` Re[2]: " aek
2003-03-25 11:38 ` Serhii Hlodin
2003-03-24 14:38 ` [Comm] rc.local Michael Shigorin
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git