You are not logged in.

#1 2014-08-09 12:47:55

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

disabled a getty service [Solved]

Are there any indepth wikis on getty and how it works with systemd? I removed a getty service and now tty1 sits on the boot proccess. I can still login if I switch to any other tty here are my current running services. I would just scroll back through rxvt's history but it must have still been open when I rebooted thanks.

proc-sys-fs-binfmt_misc.automount                                                        
sys-devices-pci0000:00-0000:00:02.0-backlight-acpi_video0.device                         
sys-devices-pci0000:00-0000:00:1b.0-sound-card0.device                                   
sys-devices-pci0000:00-0000:00:1c.2-0000:05:00.0-net-enp5s0.device                       
sys-devices-pci0000:00-0000:00:1c.3-0000:06:00.0-ssb0:0-ieee80211-phy0-rfkill1.device    
sys-devices-pci0000:00-0000:00:1c.3-0000:06:00.0-ssb0:0-net-wlan0.device                 
sys-devices-pci0000:00-0000:00:1f.1-ata4-host3-target3:0:0-3:0:0:0-block-sr0.device      
sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda1.device 
sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda2.device 
sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda.device      
sys-devices-platform-acer\x2dwmi-rfkill-rfkill0.device                                   
sys-devices-platform-serial8250-tty-ttyS0.device                                         
sys-devices-platform-serial8250-tty-ttyS1.device                                         
sys-devices-platform-serial8250-tty-ttyS2.device                                         
sys-devices-platform-serial8250-tty-ttyS3.device                                         
sys-module-configfs.device                                                               
sys-module-fuse.device                                                                   
sys-subsystem-net-devices-enp5s0.device                                                  
sys-subsystem-net-devices-wlan0.device                                                   
-.mount                                                                                  
dev-hugepages.mount                                                                      
dev-mqueue.mount                                                                         
run-user-1000-gvfs.mount                                                                 
run-user-1000.mount                                                                      
sys-kernel-config.mount                                                                  
sys-kernel-debug.mount                                                                   
tmp.mount                                                                                
systemd-ask-password-console.path                                                        
systemd-ask-password-wall.path                                                           
session-c1.scope                                                                         
dbus.service                                                                             
getty@tty2.service                                                                       
getty@tty3.service                                                                       
getty@tty4.service                                                                       
getty@tty5.service                                                                       
getty@tty6.service                                                                       
getty@tty9.service                                                                       
kmod-static-nodes.service                                                                
netctl-auto@wlan0.service                                                                
systemd-backlight@backlight:acpi_video0.service                                          
systemd-journald.service                                                                 
systemd-logind.service                                                                   
systemd-networkd.service                                                                 
systemd-random-seed.service                                                              
systemd-remount-fs.service                                                               
systemd-rfkill@rfkill0.service                                                           
systemd-rfkill@rfkill1.service                                                           
systemd-sysctl.service                                                                   
systemd-tmpfiles-setup-dev.service                                                       
systemd-tmpfiles-setup.service                                                           
systemd-udev-trigger.service                                                             
systemd-udevd.service                                                                    
systemd-update-utmp.service                                                              
systemd-user-sessions.service                                                            
systemd-vconsole-setup.service                                                           
user@1000.service                                                                        
-.slice                                                                                  
system-getty.slice                                                                       
system-netctl\x2dauto.slice                                                              
system-systemd\x2dbacklight.slice                                                        
system-systemd\x2drfkill.slice                                                           
system.slice                                                                             
user-1000.slice                                                                          
user.slice                                                                               
dbus.socket                                                                              
dm-event.socket                                                                          
systemd-initctl.socket                                                                   
systemd-journald-dev-log.socket                                                          
systemd-journald.socket                                                                  
systemd-shutdownd.socket                                                                 
systemd-udevd-control.socket                                                             
systemd-udevd-kernel.socket                                                              
dev-sda2.swap                                                                            
basic.target                                                                             
cryptsetup.target                                                                        
getty.target                                                                             
graphical.target                                                                         
local-fs-pre.target                                                                      
local-fs.target                                                                          
multi-user.target                                                                        
network.target                                                                           
paths.target                                                                             
remote-fs.target                                                                         
slices.target                                                                            
sockets.target                                                                           
sound.target                                                                             
swap.target                                                                              
sysinit.target                                                                           
timers.target                                                                            
shadow.timer                                                                                                                                          
systemd-tmpfiles-clean.timer

Last edited by mich04 (2014-08-09 15:58:35)


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#2 2014-08-09 14:11:15

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: disabled a getty service [Solved]

'man systemd.unit' etc.

Just re-enable it like any other service.

systemctl enable getty@tty1

Edit: What you probably are searching for is "instantiated services", referring to the @ in the service name: http://0pointer.de/blog/projects/instances.html (Note, this blog is from the author of systemd.)
Also see 'man logind.conf' NAutoVTs.

Last edited by rebootl (2014-08-09 14:39:16)


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#3 2014-08-09 15:58:16

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: disabled a getty service [Solved]

That worked, I was puting start, instead of enable thus rebooting the problem still existed. I will look at the man pages I always forget about those.


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

Board footer

Powered by FluxBB