Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Create a system startup script?

Discussion in 'General Discussion' started by Filipe Martins, May 11, 2019.

  1. Filipe Martins

    Filipe Martins Member

    Joined:
    Sep 29, 2016
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Portugal
    cPanel Access Level:
    Root Administrator
    Hello.
    Is it possible to set a startup script, that runs after boot, and survives system reboot and cPanel updates? How?

    Thanks.
     
  2. GOT

    GOT Get Proactive! PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    1,471
    Likes Received:
    182
    Trophy Points:
    193
    Location:
    Chesapeake, VA
    cPanel Access Level:
    DataCenter Provider
    The /etc/rc.local file is exactly what this is for. Just put your bash commands in that file.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelLauren likes this.
  3. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,166
    Likes Received:
    475
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Filipe Martins

    Filipe Martins Member

    Joined:
    Sep 29, 2016
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Portugal
    cPanel Access Level:
    Root Administrator
    It works flawlessly. Thank you.
     
    cPanelLauren likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice