Difference between revisions of "Systemd FAQ"

From ArchWiki
Jump to: navigation, search
m (FAQ)
Line 1: Line 1:
[[Category:Daemons and system services]]
 
[[Category:Boot process]]
 
[[zh-CN:Systemd FAQ]]
 
 
== FAQ ==
 
== FAQ ==
  
Line 15: Line 12:
  
 
  # ln -sf /usr/lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@tty9.service
 
  # ln -sf /usr/lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@tty9.service
 +
# systemctl daemon-reload
 
  # systemctl start getty@tty9.service
 
  # systemctl start getty@tty9.service
  
 
To remove a getty, simply remove the getty symlinks you want to get rid of in the {{ic|/etc/systemd/system/getty.target.wants/}} directory:
 
To remove a getty, simply remove the getty symlinks you want to get rid of in the {{ic|/etc/systemd/system/getty.target.wants/}} directory:
  
  # rm /etc/systemd/system/getty.target.wants/getty@{tty5,tty6}.service
+
  # rm /etc/systemd/system/getty.target.wants/getty@tty5.service /etc/systemd/system/getty.target.wants/getty@tty6.service
 +
# systemctl daemon-reload
 
  # systemctl stop getty@tty5.service getty@tty6.service
 
  # systemctl stop getty@tty5.service getty@tty6.service
  
Line 35: Line 34:
 
{{FAQ
 
{{FAQ
 
|question=How do I avoid clearing the console after boot?
 
|question=How do I avoid clearing the console after boot?
|answer=Create a custom {{ic|getty@tty1.service}} file by copying {{ic|/usr/lib/systemd/system/getty@.service}} to {{ic|/etc/systemd/system/getty@tty1.service}} and change {{ic|TTYVTDisallocate}} to {{ic|no}}.}}
+
|answer=Create a custom {{ic|getty@tty1.service}} file by copying {{ic|/usr/lib/systemd/system/getty@.service}} to {{ic|/etc/systemd/system/getty.target.wants/getty@tty1.service}} and change {{ic|TTYVTDisallocate}} to {{ic|no}}.}}
  
 
{{FAQ
 
{{FAQ
Line 43: Line 42:
 
This is a partial list of required/recommended options, there might be more:
 
This is a partial list of required/recommended options, there might be more:
  
 +
{{bc|1='''General setup'''
 +
CONFIG_FHANDLE=y
 
  CONFIG_AUDIT=y (recommended)
 
  CONFIG_AUDIT=y (recommended)
  CONFIG_AUDIT_LOGINUID_IMMUTABLE=y (not required, may break sysvinit compat)
+
  CONFIG_AUDIT_LOGINUID_IMMUTABLE=y (not required, may break sysvinit compatibility)
 
  CONFIG_CGROUPS=y
 
  CONFIG_CGROUPS=y
 +
'''-> Namespaces support'''
 +
    CONFIG_NET_NS=y (for private network)
 +
'''Networking support -> Networking options'''
 
  CONFIG_IPV6=[y<nowiki>|</nowiki>m] (highly recommended)
 
  CONFIG_IPV6=[y<nowiki>|</nowiki>m] (highly recommended)
  CONFIG_UEVENT_HELPER_PATH=""
+
'''Device Drivers'''
CONFIG_DEVTMPFS=y
+
  '''-> Generic Driver Options'''
CONFIG_DEVTMPFS_MOUNT=y (required if you don't use an initramfs)
+
    CONFIG_UEVENT_HELPER_PATH=""
  CONFIG_RTC_DRV_CMOS=y (highly recommended)
+
    CONFIG_DEVTMPFS=y
 +
    CONFIG_DEVTMPFS_MOUNT=y (required if you don't use an initramfs)
 +
  '''-> Real Time Clock'''
 +
    CONFIG_RTC_DRV_CMOS=y (highly recommended)
 +
'''File systems'''
 
  CONFIG_FANOTIFY=y (required for readahead)
 
  CONFIG_FANOTIFY=y (required for readahead)
 
  CONFIG_AUTOFS4_FS=[y<nowiki>|</nowiki>m]
 
  CONFIG_AUTOFS4_FS=[y<nowiki>|</nowiki>m]
  CONFIG_TMPFS_POSIX_ACL=y (recommended, if you want to use pam_systemd.so)
+
  '''-> Pseudo filesystems'''
CONFIG_NAMESPACES=y (for Private*=yes)
+
    CONFIG_TMPFS_POSIX_ACL=y (recommended, if you want to use pam_systemd.so)}}}}
CONFIG_NET_NS=y (for PrivateNetwork=yes)
+
CONFIG_FHANDLE=y}}
+
  
 
{{FAQ
 
{{FAQ

Revision as of 13:57, 29 October 2012

FAQ

For an up-to-date list of known issues, look at the upstream TODO.

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ

Template:FAQ