]> Pileus Git - mkinit/blobdiff - services.mk
Add getty daemon
[mkinit] / services.mk
index 1542efc07be2212d8b24c705197aa431a7d6a60c..3f69b57d1db4d948f5110db79fdc9bda18ca0478 100644 (file)
@@ -17,7 +17,8 @@ poweroff:V: halt
 reboot:V: halt
        $P reboot -ndf
 kexec:V: halt
-       $P reboot -ndfk
+       $P kexec -l /usr/src/linux/arch/x86/boot/bzImage --reuse-cmdline
+       $P kexec -e
 
 # Initial setup/shutdown for mkinit
 boot:VEPservice -u: /
@@ -101,15 +102,21 @@ fsclean-start:VPservice -u: boot
        $P exec rm -rf /.old &
        service -U $target
 
-# Spawn gettys for tty[23456]
-getty-start:VEPservice -u: hostname-start utmp-start
+# Spawn gettyd for tty[23456]
+gettyd-start:VEPservice -u: hostname-start utmp-start
+       $P exec gettyd tty2 tty3 tty4 tty5 tty6 &
+       service -U $target
+gettyd-stop_cmd=fuser -k /dev/tty2 /dev/tty3 /dev/tty4 /dev/tty5 /dev/tty6
+
+# Spawn agettys for tty[23456]
+agetty-start:VEPservice -u: hostname-start utmp-start
        $P respawn setsid agetty 38400 tty2 linux
        $P respawn setsid agetty 38400 tty3 linux
        $P respawn setsid agetty 38400 tty4 linux
        $P respawn setsid agetty 38400 tty5 linux
        $P respawn setsid agetty 38400 tty6 linux
        service -U $target
-getty-stop_cmd=fuser -k /dev/tty2 /dev/tty3 /dev/tty4 /dev/tty5 /dev/tty6
+agetty-stop_cmd=fuser -k /dev/tty2 /dev/tty3 /dev/tty4 /dev/tty5 /dev/tty6
 
 # Spawn qingys for tty[7]
 qingy-start:VEPservice -u: hostname-start utmp-start modules-start
@@ -222,6 +229,9 @@ apache2-stop_cmd=pkill apache2
 bitlbee-start_cmd=bitlbee -D -u bitlbee
 bitlbee-stop_cmd=pkill bitlbee
 
+cups-start_cmd=cupsd
+cups-stop_cmd=pkill cupsd
+
 denyhosts-start_cmd=denyhosts.py --daemon
 denyhosts-stop_cmd=pkill denyhosts.py