Difference between revisions of "Systemd fedora"
(→Add systemd service to replace rc.local) |
|||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | = Fedora Specific = | ||
Starting from Fedora 15, systemd is a drop in replacement for SysVinit. | Starting from Fedora 15, systemd is a drop in replacement for SysVinit. | ||
Line 5: | Line 6: | ||
* [http://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet SysVinit to systemd cheatsheet] | * [http://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet SysVinit to systemd cheatsheet] | ||
+ | = Developer Specific = | ||
Information provided by the systemd developer: | Information provided by the systemd developer: | ||
* [http://www.freedesktop.org/wiki/Software/systemd systemd] | * [http://www.freedesktop.org/wiki/Software/systemd systemd] | ||
+ | |||
+ | == For System Administrators == | ||
+ | Blog posts by the systemd developer Lennart Poettering for system administrators: | ||
+ | * [http://0pointer.de/blog/projects/systemd-for-admins-1.html systemd: Verifying Bootup] | ||
+ | * [http://0pointer.de/blog/projects/systemd-for-admins-2.html systemd: Which Service Owns Which Processes?] | ||
+ | * [http://0pointer.de/blog/projects/systemd-for-admins-3.html systemd: How Do I Convert A SysV Init Script Into A systemd Service File?] | ||
+ | * [http://0pointer.de/blog/projects/systemd-for-admins-4.html systemd: Killing Services] | ||
+ | * [http://0pointer.de/blog/projects/three-levels-of-off systemd: 3 levels of off] | ||
+ | * [http://0pointer.de/blog/projects/changing-roots.html systemd: Changing Roots] | ||
+ | * [http://0pointer.de/blog/projects/blame-game.html systemd: The blame game] | ||
+ | * [http://0pointer.de/blog/projects/the-new-configuration-files systemd: The New Configuration Files] | ||
+ | * [http://0pointer.de/blog/projects/on-etc-sysinit.html systemd: On /etc/sysconfig and /etc/default] | ||
+ | |||
+ | =System Administration= | ||
+ | == Add systemd service to replace rc.local == | ||
+ | Here is the suggestion: | ||
+ | |||
+ | * Reference [https://bbs.archlinux.org/viewtopic.php?id=148170 systemd service for replacing rc.local] | ||
+ | |||
+ | Add the following to the file /usr/lib/systemd/system/rc-local.service: | ||
+ | |||
+ | <pre> | ||
+ | [Unit] | ||
+ | Description=/etc/rc.local Compatibility | ||
+ | After=network.target | ||
+ | [Service] | ||
+ | Type=oneshot | ||
+ | ExecStart=-/etc/rc.local | ||
+ | TimeoutSec=0 | ||
+ | StandardInput=tty | ||
+ | RemainAfterExit=yes | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | |||
+ | </pre> | ||
+ | |||
+ | Call whatever script you want to run in /etc/rc.local and use systemctl to enable rc-local.service at boot time. | ||
[[Category:OPS335]][[Category:OPS335 Labs]] | [[Category:OPS335]][[Category:OPS335 Labs]] |
Latest revision as of 13:16, 14 May 2013
Contents
Fedora Specific
Starting from Fedora 15, systemd is a drop in replacement for SysVinit.
Information on Fedora's implementation of systemd:
Developer Specific
Information provided by the systemd developer:
For System Administrators
Blog posts by the systemd developer Lennart Poettering for system administrators:
- systemd: Verifying Bootup
- systemd: Which Service Owns Which Processes?
- systemd: How Do I Convert A SysV Init Script Into A systemd Service File?
- systemd: Killing Services
- systemd: 3 levels of off
- systemd: Changing Roots
- systemd: The blame game
- systemd: The New Configuration Files
- systemd: On /etc/sysconfig and /etc/default
System Administration
Add systemd service to replace rc.local
Here is the suggestion:
- Reference systemd service for replacing rc.local
Add the following to the file /usr/lib/systemd/system/rc-local.service:
[Unit] Description=/etc/rc.local Compatibility After=network.target [Service] Type=oneshot ExecStart=-/etc/rc.local TimeoutSec=0 StandardInput=tty RemainAfterExit=yes [Install] WantedBy=multi-user.target
Call whatever script you want to run in /etc/rc.local and use systemctl to enable rc-local.service at boot time.