Startup of an UML service

Help
2003-10-20
2004-01-29
  • Mattias Kunkel

    Mattias Kunkel - 2003-10-20

    Hi,

    I'm new to this list so please tell me if I'm at the wrong place.

    I've installed UML on my Debian machine and everything works fine. Now I want to start my Virtual Linux System every time I make a reboot of my host machine. I made the following script:

    #!/bin/sh
    #

    case "$1" in
      start)
          echo -n "Starting up user-mode-linux: pdfprint"
          cd /home/mkunkel/uml/node2
          nohup "linux eth0=tuntap,,,192.168.0.111 ubd1=home_fs ubd2=usr_fs ubd3=var_fs con1=tty:/dev/tty8 umid=pdfprint"
          echo "."
        ;;
      stop)
          echo -n "Shutting down user-mode-linux: pdfprint"
          uml_mconsole pdfprint cad
          echo "."
        ;;
      *)
          echo "Usage: /etc/init.d/pdfprintuml {start|stop}"
          exit 1
        ;;
    esac

    exit 0

    When I close my host-colsole, my UML dies too. Does anybody have a better script to startup (like /etc/init.d/....)?

    Thanks,
    Mattias

     
    • Mattias Kunkel

      Mattias Kunkel - 2003-10-20

      I started without "nohup" too:

      linux eth0=tuntap,,,192.168.0.111 ubd1=home_fs ubd2=usr_fs ubd3=var_fs con1=tty:/dev/tty8 umid=pdfprint

       
    • Ali

      Ali - 2004-01-29

      You better use screen, start screen as daemon, so it will give a virtual console for uml, also if there is any problem with uml you can access it with screen and fix it.

      I use screen to start my umls.

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks