* [Comm] Как сделать скрипт, чтобы его /sbin/service мог обслужить?
@ 2005-12-28 11:15 spider
2005-12-28 12:18 ` Шенцев Алексей Владимирович
0 siblings, 1 reply; 6+ messages in thread
From: spider @ 2005-12-28 11:15 UTC (permalink / raw)
To: ALT Linux Community
Есть три скрипта, я их использую для соединения с провайдером используя
pptp. Хотелось бы их запускать автоматом при включении компа.
Что надо сделать, чтобы /sbin/service мог их обслуживать? Где можно
внятно прочитать, как устроен скрипт для /sbin/service?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] Как сделать скрипт, чтобы его /sbin/service мог обслужить?
2005-12-28 11:15 [Comm] Как сделать скрипт, чтобы его /sbin/service мог обслужить? spider
@ 2005-12-28 12:18 ` Шенцев Алексей Владимирович
2005-12-28 12:39 ` spider
0 siblings, 1 reply; 6+ messages in thread
From: Шенцев Алексей Владимирович @ 2005-12-28 12:18 UTC (permalink / raw)
To: ALT Linux Community
В сообщении от Среда 28 Декабрь 2005 14:15 spider написал(a):
> Есть три скрипта, я их использую для соединения с провайдером используя
> pptp. Хотелось бы их запускать автоматом при включении компа.
> Что надо сделать, чтобы /sbin/service мог их обслуживать? Где можно
> внятно прочитать, как устроен скрипт для /sbin/service?
Скрипты ложишь в /etc/rc.d/init.d/ Выполняешь #chkconfig --add <скрипт> ,
потом #chkconfig --level 35 <скрипт> on
Вроде так, если не ошибся. Ток тут надо ещё посмотреть порядок запуска
скриптов, до и после каких сервисов они должны запускаться.
--
С уважением, Шенцев Алексей (AShen)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] Как сделать скрипт, чтобы его /sbin/service мог обслужить?
2005-12-28 12:18 ` Шенцев Алексей Владимирович
@ 2005-12-28 12:39 ` spider
2005-12-28 13:43 ` Шенцев Алексей Владимирович
2005-12-28 13:46 ` Slava Dubrovskiy
0 siblings, 2 replies; 6+ messages in thread
From: spider @ 2005-12-28 12:39 UTC (permalink / raw)
To: ALT Linux Community
Шенцев Алексей Владимирович пишет:
>
> Скрипты ложишь в /etc/rc.d/init.d/ Выполняешь #chkconfig --add <скрипт> ,
А он мне на это отвечает, что <скрипт> не предназначен для обслуживания
chkconfig'ом.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] Как сделать скрипт, чтобы его /sbin/service мог обслужить?
2005-12-28 12:39 ` spider
@ 2005-12-28 13:43 ` Шенцев Алексей Владимирович
2005-12-28 14:08 ` Andrew Borodin
2005-12-28 13:46 ` Slava Dubrovskiy
1 sibling, 1 reply; 6+ messages in thread
From: Шенцев Алексей Владимирович @ 2005-12-28 13:43 UTC (permalink / raw)
To: ALT Linux Community
В сообщении от Среда 28 Декабрь 2005 15:39 spider написал(a):
> А он мне на это отвечает, что <скрипт> не предназначен для обслуживания
> chkconfig'ом.
Пока жите вывод chkconfig'а ... ;)
--
С уважением, Шенцев Алексей (AShen)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] Как сделать скрипт, чтобы его /sbin/service мог обслужить?
2005-12-28 13:43 ` Шенцев Алексей Владимирович
@ 2005-12-28 14:08 ` Andrew Borodin
0 siblings, 0 replies; 6+ messages in thread
From: Andrew Borodin @ 2005-12-28 14:08 UTC (permalink / raw)
To: ALT Linux Community
On Wed, Dec 28, 2005 at 04:43:54PM +0300, Шенцев Алексей Владимирович wrote:
> В сообщении от Среда 28 Декабрь 2005 15:39 spider написал(a):
> > А он мне на это отвечает, что <скрипт> не предназначен для обслуживания
> > chkconfig'ом.
> Пока жите вывод chkconfig'а ... ;)
Чего тут показывать? От того, что какой-то скрипт положить в
/etc/init.d, init-скриптом он не станет. Его надо соответствующим
образом переписать. За образец можно взять какой-нибудь скрипт
из /etc/init.d.
--
С уважением,
А. Бородин.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] Как сделать скрипт, чтобы его /sbin/service мог обслужить?
2005-12-28 12:39 ` spider
2005-12-28 13:43 ` Шенцев Алексей Владимирович
@ 2005-12-28 13:46 ` Slava Dubrovskiy
1 sibling, 0 replies; 6+ messages in thread
From: Slava Dubrovskiy @ 2005-12-28 13:46 UTC (permalink / raw)
To: ALT Linux Community
spider пишет:
>> Скрипты ложишь в /etc/rc.d/init.d/ Выполняешь #chkconfig --add
>> <скрипт> ,
>
> А он мне на это отвечает, что <скрипт> не предназначен для
> обслуживания chkconfig'ом.
Скрипт должен соответствовать IRIX style chkconfig.
Прочитайте man chkconfig. Там пример есть.
--
С уважением,
Дубровский Вячеслав.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-12-28 14:08 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-28 11:15 [Comm] Как сделать скрипт, чтобы его /sbin/service мог обслужить? spider
2005-12-28 12:18 ` Шенцев Алексей Владимирович
2005-12-28 12:39 ` spider
2005-12-28 13:43 ` Шенцев Алексей Владимирович
2005-12-28 14:08 ` Andrew Borodin
2005-12-28 13:46 ` Slava Dubrovskiy
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