From: Sergei Epiphanov <serpiph@nikiet.ru>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] systemd и порядок загрузки
Date: Thu, 07 Mar 2013 13:50:54 +0400
Message-ID: <2692524.dyucjcgpSn@epiphanov.bkpi82.nikiet.ru> (raw)
In-Reply-To: <CAApwk_qJBNh7Y-+2B26rdpaoDN9rDgxpLxA22XE3EE+X9qn45Q@mail.gmail.com>
On 7 марта 2013 13:00 greg dex wrote:
> > Для того, чтобы серверы ssh и dhcp поднимались после появления сети,
> > необходимо в unit этих сервисов указать строку:
> >
> > After=network.target
>
> grep After /etc/systemd/system/multi-user.target.wants/dhcpd.service
> After=network.target
> After=time-sync.target
>
>
> Это же дефолт. Не может же только у меня одно не работать?
Вот мой вариант:
[Unit]
Description=DHCP server
After=network.service network.target
[Service]
ExecStart=/etc/rc.d/init.d/dhcpd start
ExecStop=/etc/rc.d/init.d/dhcpd stop
ExecReload=/etc/rc.d/init.d/dhcpd reload
Type=forking
TimeoutSec=0
[Install]
WantedBy=network.target multi-user.target
Я его набросал, когда родного unit-файла ещё не было, и пока он меня не
подводил. Обратите на After.
--
С уважением, Епифанов Сергей
next prev parent reply other threads:[~2013-03-07 9:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-07 3:49 greg dex
2013-03-07 4:06 ` Дмитрий Дегтярев
2013-03-07 7:53 ` Anton V. Boyarshinov
2013-03-07 9:00 ` greg dex
2013-03-07 9:50 ` Sergei Epiphanov [this message]
2013-03-07 5:35 ` Sergei Epiphanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2692524.dyucjcgpSn@epiphanov.bkpi82.nikiet.ru \
--to=serpiph@nikiet.ru \
--cc=sisyphus@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git