Difference between revisions of "Systemd fedora"

From CDOT Wiki
Jump to: navigation, search
(Developer Specific)
(Add systemd service to replace rc.local)
 
Line 24: Line 24:
 
=System Administration=
 
=System Administration=
 
== Add systemd service to replace rc.local ==
 
== 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]
 
* Reference [https://bbs.archlinux.org/viewtopic.php?id=148170 systemd service for replacing rc.local]
  

Latest revision as of 13:16, 14 May 2013

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:

System Administration

Add systemd service to replace rc.local

Here is the suggestion:

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.