Autostart terminal and PHP server on startup

Discussion in 'UDOO NEO' started by Yuvraj, Feb 9, 2017.

  1. Yuvraj

    Yuvraj New Member

    Joined:
    Feb 9, 2017
    Messages:
    1
    Likes Received:
    0
    Dear All,I want to Udoo neo to start some programs(terminal,PHP server and a shell script) on the reboot of Udoobuntu.....how do I do that......Thanks in advance
     
  2. Gorgo

    Gorgo UDOOer

    Joined:
    Nov 9, 2016
    Messages:
    159
    Likes Received:
    17
    You can edit /etc/rc.local with your bash commands
     
  3. asus david

    asus david New Member

    Joined:
    Jul 6, 2018
    Messages:
    1
    Likes Received:
    0
    The following example I have taken as Apache HTTP server, but procedure remain same for any other services you wish to start at boot in Red Hat Enterprise Linux (RHEL) or CentOS 6 version.

    You can keep any script file name, and here I’ve kept httpd

    • Become as root user on your Linux server
    • Create or copy your script under /etc/init.d/
    [root@Chandan init.d]# ls -ltr httpd
    -rwxr-xr-x. 1 root root 3371 Jan 6 08:56 httpd
    [root@Chandan init.d]#
    We will use chkconfig utility which is available default on Linux or CentOS.

    • Add script to start on boot using chkconfig with --add parameter
    [root@Chandan init.d]# chkconfig --add httpd
    [root@Chandan init.d]# chkconfig httpd on
    • Confirm script is added successfully with --list
    [root@Chandan init.d]# chkconfig --list httpd
    httpd 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
    [root@Chandan init.d]#
    That’s all! httpd script will be called to start services on Linux boot.

    In case you need to disable auto-start service then you can use the following commands

    chkconfig httpd off
    chkconfig --del httpd basically i solve the hotmail login problem but im all-rounder if you need then please contact me through my website
     

Share This Page