<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Linux Forum &mdash; Systemd init, взялся потихоньку, советы]]></title>
		<link>https://linuxforum.ru/viewtopic.php?id=19539</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=19539&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Systemd init, взялся потихоньку, советы».]]></description>
		<lastBuildDate>Mon, 16 Jan 2012 22:22:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Systemd init, взялся потихоньку, советы]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=243658#p243658</link>
			<description><![CDATA[<p>Написание собственных init скриптов, перевод <a href="http://wiki.opennet.ru/Systemd_%D0%B4%D0%BB%D1%8F_%D0%B0%D0%B4%D0%BC%D0%B8%D0%BD%D0%B8%D1%81%D1%82%D1%80%D0%B0%D1%82%D0%BE%D1%80%D0%BE%D0%B2%2C_%D1%87%D0%B0%D1%81%D1%82%D1%8C_3:_HOW-TO:_%D0%BF%D1%80%D0%B5%D0%BE%D0%B1%D1%80%D0%B0%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5_SysV_init-%D1%81%D0%BA%D1%80%D0%B8%D0%BF%D1%82%D0%B0_%D0%B2_systemd_service-%D1%84%D0%B0%D0%B9%D0%BB">http://wiki.opennet.ru/Systemd_%D0%B4%D … 0%B9%D0%BB</a></p>]]></description>
			<author><![CDATA[null@example.com (zenon)]]></author>
			<pubDate>Mon, 16 Jan 2012 22:22:19 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=243658#p243658</guid>
		</item>
		<item>
			<title><![CDATA[Re: Systemd init, взялся потихоньку, советы]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=243440#p243440</link>
			<description><![CDATA[<p>С сетью никаких проблем.<br />создал: /etc/systemd/system/network.service<br /></p><div class="codebox"><pre><code>[Unit]
Description=Network Connectivity

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/ifconfig eth0 192.168.0.1 netmask 255.255.255.0 mtu 1496 broadcast 192.168.0.255 up
ExecStart=/sbin/route add default gw 192.168.0.1
ExecStart=/sbin/ifconfig eth1 up

ExecStop=/sbin/ifconfig eth0 down
ExecStop=/sbin/ifconfig eth1 down
[Install]
WantedBy=network.target</code></pre></div><p>Добавил в стартап:<br /></p><div class="codebox"><pre><code>systemctl enable network.service</code></pre></div><p>Главное чтобы в ExecStart был _бинарник_ с указанием пути, если прописать скрипт, он будет проигнорирован, если путь не указать, то сервис не запустится.</p>]]></description>
			<author><![CDATA[null@example.com (zenon)]]></author>
			<pubDate>Mon, 16 Jan 2012 12:24:45 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=243440#p243440</guid>
		</item>
		<item>
			<title><![CDATA[Re: Systemd init, взялся потихоньку, советы]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=243437#p243437</link>
			<description><![CDATA[<p>Не понял откуда появились локали. <br />Вроде после этого<br /></p><div class="codebox"><pre><code>localedef --no-archive -c -i ru_RU -f UTF-8 ru_RU.utf-8</code></pre></div><p>Результат куда записывает localedef?</p>]]></description>
			<author><![CDATA[null@example.com (zenon)]]></author>
			<pubDate>Mon, 16 Jan 2012 12:11:07 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=243437#p243437</guid>
		</item>
		<item>
			<title><![CDATA[Re: Systemd init, взялся потихоньку, советы]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=243411#p243411</link>
			<description><![CDATA[<p>Совместимость с OpenRC</p><p>systemd comes with some degree of OpenRC compatibility, so it will gracefully read most of the base system options from its files. This includes the following files:<br /></p><div class="codebox"><pre><code>    /etc/conf.d/hostname for hostname,
    /etc/profile.env for locale (created by env-update from /etc/env.d),
    /etc/rc.conf for the unicode console setting,
    /etc/conf.d/consolefont for the console font settings,
    /etc/conf.d/keymaps for the keymap setting (but only the actual keymap). </code></pre></div><p>Additionally, the following configuration directories are both used by OpenRC and systemd:</p><div class="codebox"><pre><code>    /etc/modules-load.d,
    /etc/sysctl.d,
    /etc/binfmt.d (since OpenRC-0.9.4). </code></pre></div><p>Alternatively, you can migrate your system to use Native systemd configuration files. Bear in mind that upstream has made it clear that at some point in the future it will stop supporting configuration files for specific distributions, and it will only support the native systemd configuration files. If you plan to use systemd exclusively, please use its native configuration files.<br /><a href="http://wiki.gentoo.org/wiki/Systemd">http://wiki.gentoo.org/wiki/Systemd</a></p>]]></description>
			<author><![CDATA[null@example.com (zenon)]]></author>
			<pubDate>Mon, 16 Jan 2012 10:27:10 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=243411#p243411</guid>
		</item>
		<item>
			<title><![CDATA[Re: Systemd init, взялся потихоньку, советы]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=243407#p243407</link>
			<description><![CDATA[<p>Нативные конфигурационные файлы systemd:<br /></p><div class="codebox"><pre><code>/etc/locale.conf 
/etc/vconsole.conf 
/etc/hostname 
/etc/modules-load.d/*.conf</code></pre></div><p>Сделал:<br /></p><div class="codebox"><pre><code>$cat /etc/vconsole.conf
KEYMAP=&quot;-u ru&quot;
FONT=&quot;ter-k14n&quot;</code></pre></div><p>шрифт подхватился, переключения нет.</p><div class="codebox"><pre><code>$cat /etc/locale.conf
LANG=ru_RU.UTF-8
LC_COLLATE=C
LC_NUMERIC=POSIX</code></pre></div><p>Локали не подхватились, что то делаю не так.<br />localedef --no-archive -c -i ru_RU -f UTF-8 ru_RU.utf-8&nbsp; -&nbsp; может?<br />/etc/hostname - нормально подхватил.</p>]]></description>
			<author><![CDATA[null@example.com (zenon)]]></author>
			<pubDate>Mon, 16 Jan 2012 10:14:28 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=243407#p243407</guid>
		</item>
		<item>
			<title><![CDATA[Re: Systemd init, взялся потихоньку, советы]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=243325#p243325</link>
			<description><![CDATA[<p>Полистал буклет <a href="http://0pointer.de/public/systemd-lca2011.pdf">http://0pointer.de/public/systemd-lca2011.pdf</a><br /></p><div class="quotebox"><cite>Lennart Poettering пишет:</cite><blockquote><p>Shell is evil<br />Move to systemd, daemons, kernel, udev, . . .</p></blockquote></div><p>Насколько я понял ругань на счет init скриптов, которые сплошь а шелле. Так?</p>]]></description>
			<author><![CDATA[null@example.com (zenon)]]></author>
			<pubDate>Sun, 15 Jan 2012 22:18:38 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=243325#p243325</guid>
		</item>
		<item>
			<title><![CDATA[Re: Systemd init, взялся потихоньку, советы]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=243320#p243320</link>
			<description><![CDATA[<p>Потихоньку начало доходить.<br />Вот арчевский systemd&nbsp; &nbsp; &nbsp;network.service<br /></p><div class="codebox"><pre><code>[Unit]
Description=Network Connectivity
Wants=network.target
Before=network.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/etc/rc.d/network start
ExecStop=/etc/rc.d/network stop

[Install]
WantedBy=multi-user.target</code></pre></div><p>Вот из примеров gentoo&nbsp; &nbsp; &nbsp; network.service<br /></p><div class="codebox"><pre><code>[Unit]
Description=Network Connectivity

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/ifconfig eth0 192.168.1.2 mtu 1496
ExecStart=/sbin/route add default gw 192.168.1.1
ExecStop=/sbin/ifconfig eth0 down

[Install]
WantedBy=network.target</code></pre></div><p>Вот старт nginx; nginx.service<br /></p><div class="codebox"><pre><code>[Unit]
Description=A high performance web server and a reverse proxy server

[Service]
Type=forking
PIDFile=/run/nginx.pid
ExecStartPre=/usr/sbin/nginx -t -q -g &#039;pid /run/nginx.pid; daemon on; master_process on;&#039;
ExecStart=/usr/sbin/nginx -g &#039;pid /run/nginx.pid; daemon on; master_process on;&#039;
ExecReload=/usr/sbin/nginx -g &#039;pid /run/nginx.pid; daemon on; master_process on;&#039; -s reload
ExecStop=/usr/sbin/nginx -g &#039;pid /run/nginx.pid;&#039; -s quit

[Install]
WantedBy=multi-user.target</code></pre></div><p>cronie.service<br /></p><div class="codebox"><pre><code>[Unit]
Description=Periodic Command Scheduler

[Service]
ExecStart=/usr/sbin/crond -n
ExecReload=/bin/kill -HUP $MAINPID
Restart=always

[Install]
WantedBy=multi-user.target</code></pre></div><p>Ну и acpi<br /></p><div class="codebox"><pre><code>[Unit]
Description=ACPI event daemon
Requires=acpid.socket

[Service]
EnvironmentFile=/etc/conf.d/acpid
ExecStart=/usr/sbin/acpid -f ${ACPID_ARGS}</code></pre></div><p>Насколько я понял можно запуски обычных демонов даже использовать (и чтение конфигов из /etc/conf.d в том числе), разница в том что всей этой толпой командует systemd, и распараллеливает процесс загрузки.</p>]]></description>
			<author><![CDATA[null@example.com (zenon)]]></author>
			<pubDate>Sun, 15 Jan 2012 21:19:44 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=243320#p243320</guid>
		</item>
		<item>
			<title><![CDATA[Re: Systemd init, взялся потихоньку, советы]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=243301#p243301</link>
			<description><![CDATA[<p>Рылся, арчеводы молодцы однака <a href="https://github.com/falconindy/systemd-arch-units/tree/master/service">https://github.com/falconindy/systemd-a … er/service</a> - готовые сервисы.</p>]]></description>
			<author><![CDATA[null@example.com (zenon)]]></author>
			<pubDate>Sun, 15 Jan 2012 20:18:20 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=243301#p243301</guid>
		</item>
		<item>
			<title><![CDATA[Re: Systemd init, взялся потихоньку, советы]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=243198#p243198</link>
			<description><![CDATA[<p>Про оверлей-то я и забыл.<br /></p><div class="codebox"><pre><code>$eix systemd
[i] sys-apps/systemd
     Available versions:  (~)29-r3 (~)29-r5 [M](~)37-r1 [M](~)37-r3 [M](~)38 {acl audit bash-completion cryptsetup gtk lzma pam plymouth selinux tcpd}
     Installed versions:  29-r5(14:57:52 14.01.2012)(gtk pam tcpd -audit -cryptsetup -plymouth -selinux)
     Homepage:            http://www.freedesktop.org/wiki/Software/systemd
     Description:         System and service manager for Linux

[i] sys-apps/systemd-sysv-utils
     Available versions:  (~)37
     Installed versions:  37(14:02:56 15.01.2012)
     Homepage:            http://www.freedesktop.org/wiki/Software/systemd
     Description:         sysvinit compatibility symlinks and manpages

* sys-apps/baselayout-systemd [1]
     Available versions:  (~)0 {+guess}
     Homepage:            http://0pointer.de/blog/projects/the-new-configuration-files.html
     Description:         Standard system configuration files

* sys-apps/systemd-units [1]
     Available versions:  (~)9999 {+basic +desktop ingnome3 server}
     Homepage:            http://www.freedesktop.org/wiki/Software/systemd http://en.gentoo-wiki.com/wiki/Systemd
     Description:         Service files for sys-apps/systemd

[1] &quot;systemd&quot; /var/lib/layman/systemd</code></pre></div><p>Надо рассмотреть что готовое есть.</p>]]></description>
			<author><![CDATA[null@example.com (zenon)]]></author>
			<pubDate>Sun, 15 Jan 2012 14:27:17 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=243198#p243198</guid>
		</item>
		<item>
			<title><![CDATA[Re: Systemd init, взялся потихоньку, советы]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=243186#p243186</link>
			<description><![CDATA[<p>Конфиг Aptosid&#039;а, ядро 3.2.1, если кому надо <a href="http://paste.pocoo.org/show/535095/">http://paste.pocoo.org/show/535095/</a>&nbsp; &nbsp; smile</p>]]></description>
			<author><![CDATA[null@example.com (zenon)]]></author>
			<pubDate>Sun, 15 Jan 2012 12:32:24 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=243186#p243186</guid>
		</item>
		<item>
			<title><![CDATA[Re: Systemd init, взялся потихоньку, советы]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=243183#p243183</link>
			<description><![CDATA[<div class="quotebox"><cite>Fat-Zer пишет:</cite><blockquote><div class="quotebox"><cite>newzenon пишет:</cite><blockquote><p>nouveau.modeset=0</p></blockquote></div><p>чего, правда свободные пользуешь? оно работает?</p></blockquote></div><p>Была попытка, сейчас только опция осталась, не убрал.&nbsp; smile</p>]]></description>
			<author><![CDATA[null@example.com (zenon)]]></author>
			<pubDate>Sun, 15 Jan 2012 12:27:50 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=243183#p243183</guid>
		</item>
		<item>
			<title><![CDATA[Re: Systemd init, взялся потихоньку, советы]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=243182#p243182</link>
			<description><![CDATA[<div class="quotebox"><cite>Fat-Zer пишет:</cite><blockquote><p>а не проще? ln -s /bin/systemd /sbin/init</p></blockquote></div><p>Для этого надо полностью на него перейти, а так, да конечно проще.</p><div class="quotebox"><cite>Fat-Zer пишет:</cite><blockquote><p>дык по ссылке их не один... но необычные выдумывать придётся самому...</p></blockquote></div><p>Сейчас два основных нужны keymaps и consolefont.<br />Пока не понял, но вот так<br /><a href="http://en.gentoo-wiki.com/wiki/Systemd#OpenRC_Compatibility">http://en.gentoo-wiki.com/wiki/Systemd# … patibility</a><br />вроде обычные сервисы должны стартануть.</p>]]></description>
			<author><![CDATA[null@example.com (zenon)]]></author>
			<pubDate>Sun, 15 Jan 2012 12:26:36 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=243182#p243182</guid>
		</item>
		<item>
			<title><![CDATA[Re: Systemd init, взялся потихоньку, советы]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=243181#p243181</link>
			<description><![CDATA[<div class="quotebox"><cite>newzenon пишет:</cite><blockquote><p>Главное тут real_init=/bin/systemd</p></blockquote></div><p>а не проще? ln -s /bin/systemd /sbin/init<br /></p><div class="quotebox"><cite>newzenon пишет:</cite><blockquote><p>Где брать иниты, кроме тех что в примерах по ссылке, не знаю пока.</p></blockquote></div><p>дык по ссылке их не один... но необычные выдумывать придётся самому...</p><div class="quotebox"><cite>newzenon пишет:</cite><blockquote><p>nouveau.modeset=0</p></blockquote></div><p>чего, правда свободные пользуешь? оно работает?</p>]]></description>
			<author><![CDATA[null@example.com (Fat-Zer)]]></author>
			<pubDate>Sun, 15 Jan 2012 12:21:52 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=243181#p243181</guid>
		</item>
		<item>
			<title><![CDATA[Re: Systemd init, взялся потихоньку, советы]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=243175#p243175</link>
			<description><![CDATA[<p>Ага, добавил hwclock.<br /></p><div class="codebox"><pre><code>$cat /etc/systemd/system/hwclock.service
[Unit]
Description=hwclock

[Service]
Type=oneshot
ExecStart=/sbin/hwclock --hctosys --localtime
ExecStop=/sbin/hwclock --systohc --localtime

[Install]
WantedBy=multi-user.target</code></pre></div><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">$systemctl enable hwclock.service <br />ln -s &#039;/etc/systemd/system/hwclock.service&#039; &#039;/etc/systemd/system/multi-user.target.wants/hwclock.service&#039;</div></p>]]></description>
			<author><![CDATA[null@example.com (zenon)]]></author>
			<pubDate>Sun, 15 Jan 2012 12:05:55 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=243175#p243175</guid>
		</item>
		<item>
			<title><![CDATA[Systemd init, взялся потихоньку, советы]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=243174#p243174</link>
			<description><![CDATA[<p>Мануал этот <a href="http://en.gentoo-wiki.com/wiki/Systemd">http://en.gentoo-wiki.com/wiki/Systemd</a> других не видел.<br />В опциях загрузки ядра следующее:<br /></p><div class="codebox"><pre><code>linux /boot/kernel-x86_64-3.2.1-gentoo root=/dev/sdb8 quiet vga=795 nomodeset nouveau.modeset=0 real_init=/bin/systemd</code></pre></div><p>Главное тут real_init=/bin/systemd</p><p>Сходу не получилось, на zen-kernel - ругань, сейчас не вспомню какая.<br />Попробовал gentoo-sources, не стал мудрить, конфиг стащил с Aptosid, ядро 3.2.1.<br />ok, загрузился. С сервисами буду разбираться.</p><p>Из того что есть после установки:<br /></p><div class="codebox"><pre><code>$ls -l /etc/systemd/system/getty.target.wants
итого 0
lrwxrwxrwx 1 root root 38 янв.  14 14:57 getty@tty1.service -&gt; /usr/lib/systemd/system/getty@.service
lrwxrwxrwx 1 root root 38 янв.  14 14:57 getty@tty2.service -&gt; /usr/lib/systemd/system/getty@.service
lrwxrwxrwx 1 root root 38 янв.  14 14:57 getty@tty3.service -&gt; /usr/lib/systemd/system/getty@.service
lrwxrwxrwx 1 root root 38 янв.  14 14:57 getty@tty4.service -&gt; /usr/lib/systemd/system/getty@.service
lrwxrwxrwx 1 root root 38 янв.  14 14:57 getty@tty5.service -&gt; /usr/lib/systemd/system/getty@.service
lrwxrwxrwx 1 root root 38 янв.  14 14:57 getty@tty6.service -&gt; /usr/lib/systemd/system/getty@.service</code></pre></div><p>Все, то бишь только tty и всё.<br />Где брать иниты, кроме тех что в примерах по ссылке, не знаю пока.<br />У кого есть чем помочь, что сказать, выкладывайте. <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /></p>]]></description>
			<author><![CDATA[null@example.com (zenon)]]></author>
			<pubDate>Sun, 15 Jan 2012 12:01:36 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=243174#p243174</guid>
		</item>
	</channel>
</rss>
