Systemd: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
== Description == | == Description == | ||
systemd is a system and session manager for Linux. | systemd is a system and session manager for Linux also including udev nowadays. | ||
== Kernel settings == | == Kernel settings == | ||
First of all you need a recent kernel version >= | First of all you need a recent kernel version >=3.5 and some [[Kernel#systemd|kernel options]] set. | ||
== | == Installation == | ||
{{File|/etc/paludis/options.conf| | {{File|/etc/paludis/options.conf| | ||
<pre> | <pre> | ||
| Line 15: | Line 14: | ||
</pre> | </pre> | ||
}} | }} | ||
{{Root|cave resolve systemd -x}} | {{Root|cave resolve systemd -x}} | ||
| Line 26: | Line 19: | ||
Now we need to reinstall packages with the systemd option set. | Now we need to reinstall packages with the systemd option set. | ||
{{Root|cave resolve world - | {{Root|cave resolve world -cx}} | ||
== Configuration == | |||
{{File|/etc/hostname| | {{File|/etc/hostname| | ||
| Line 61: | Line 46: | ||
}} | }} | ||
{{File|/etc/env.d/ | {{File|/etc/env.d/99locale| | ||
<pre> | <pre> | ||
LANG=de_DE.utf8 | LANG=de_DE.utf8 | ||
| Line 72: | Line 57: | ||
== Enable network == | == Enable network == | ||
Either for simple net: | |||
{{Root|systemctl enable network.service}} | {{Root|systemctl enable network.service}} | ||
Or when using NetworkManager: | |||
{{Root|cave resolve repository/desktop -x}} | {{Root|cave resolve repository/desktop -x}} | ||
| Line 89: | Line 74: | ||
{{Root|systemctl enable sshd.socket}} | {{Root|systemctl enable sshd.socket}} | ||
{{Root|systemctl start sshd.socket}} | |||
== Manually starting and stopping services == | == Manually starting and stopping services == | ||
| Line 101: | Line 87: | ||
== Enable additional/optional services == | == Enable additional/optional services == | ||
systemd-journal-gatewayd: | |||
{{Root|systemctl enable systemd-journal-gatewayd.service}} | |||
Available via port 19531. | |||
vixie-cron: | vixie-cron: | ||
Revision as of 13:27, 6 December 2012
Description
systemd is a system and session manager for Linux also including udev nowadays.
Kernel settings
First of all you need a recent kernel version >=3.5 and some kernel options set.
Installation
File: /etc/paludis/options.conf
*/* build_options: jobs=5 -recommended_tests */* systemd sys-apps/systemd simple-net
# cave resolve systemd -x
Now we need to reinstall packages with the systemd option set.
# cave resolve world -cx
Configuration
File: /etc/hostname
desired-hostname
File: /etc/vconsole.conf
FONT="lat9w-16" KEYMAP="de"
File: /etc/conf.d/network.conf
IFACE=eth0 IPV4=192.168.0.2 MASK=255.255.255.0 BCAST=255.255.255.0 GATEWAY=192.168.0.1
File: /etc/env.d/99locale
LANG=de_DE.utf8
Reboot and login.
Enable network
Either for simple net:
# systemctl enable network.service
Or when using NetworkManager:
# cave resolve repository/desktop -x
# cave resolve NetworkManager -x
# systemctl enable NetworkManager.service
Enable sshd connectivity
# systemctl enable sshd.socket
# systemctl start sshd.socket
Manually starting and stopping services
You'll find an overview of all installed services and sockets in /lib/systemd/system.
# systemctl start <service>.service
# systemctl stop <service>.service
# systemctl
prints a status report of your systemd setup.
Enable additional/optional services
systemd-journal-gatewayd:
# systemctl enable systemd-journal-gatewayd.service
Available via port 19531.
vixie-cron:
# systemctl enable vixie-cron.service
ntp:
# systemctl enable ntpd.service
MySQL:
# systemctl enable mysql.service