fachinformatiker-wiki

it's easy when it's here

User Tools

Site Tools


linux:init-systems

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:init-systems [2023/08/20 19:12] – [Commands] gsyslinux:init-systems [2025/04/09 13:06] (current) – [Commands] gsys
Line 1: Line 1:
 ====== Init Systems ====== ====== Init Systems ======
 +
 +<code>
 +who -r ctl start                       # get current runlevel
 +sudo runlevel                          # get current runlevel
 +</code>
  
 ===== systemd ===== ===== systemd =====
 +
 +==== config files ====
 +
 +<code>
 +ls -al /lib/systemd/system/runlevel*
 +</code>
  
 ==== Commands ==== ==== Commands ====
  
 <code> <code>
-systemctl start grpwise.service        # start service grpwise +systemctl start grpwise.service          # start service grpwise 
-systemctl stop grpwise.service         # stop service grpwise +systemctl stop grpwise.service           # stop service grpwise 
-systemctl status grpwise.service       # show status of service grpwise +systemctl status grpwise.service         # show status of service grpwise 
-systemctl disable grpwise.service      remove service grpwise+systemctl enable grpwise.service         # enable service grpwise 
 +systemctl disable grpwise.service        disable service grpwise 
 +systemctl get-default                    # get default runlevel 
 +systemctl set-default multi-user.target  # set gui as default (runlevel 3) 
 +systemctl set-default graphical.target   # set cli as default (runlevel 5) 
 +systemctl isolate graphical.target       # switch to gui 
 +systemctl isolate multi-user.target      # switch to cli 
 +systemctl reboot                         # reboot (runlevel 6) 
 +systemctl poweroff                       # shutdown (runlevel 0)
 </code> </code>
  
Line 19: Line 38:
 chkconfig --add grpwise                # add service grpwise to all runlevels chkconfig --add grpwise                # add service grpwise to all runlevels
 chkconfig --del grpwise                # remove service grpwise from all runlevels chkconfig --del grpwise                # remove service grpwise from all runlevels
-chkconfig --level 235 grpwise on      # enable service grpwise on runlevels 2,3,5 +chkconfig --level 235 grpwise on       # enable service grpwise on runlevels 2,3,5 
-chkconfig --level 235 grpwise off     # disable service grpwise on runlevels 2,3,5+chkconfig --level 235 grpwise off      # disable service grpwise on runlevels 2,3,5
 </code> </code>
linux/init-systems.1692551575.txt.gz · Last modified: 2024/02/17 19:03 (external edit)