Skip to main content

Set up to allow cPanel users to run application in background (not root) - scratching my head on this one ..

Comments

4 comments

  • cPRex Jurassic Moderator
    Hey there! In general, this sounds more like you want a daemon than a script, as that isn't associated with a certain user, but does run as root. If you have a certain script in mind you could add the "&" symbol to the end of it to run in the background of bash, but I'm not sure if that's what you're looking for or not. Cron jobs are not re-executed after a reboot, until the next time they are triggered. cPanel doesn't officially support Docker yet (although we're getting there) so it's possible that some of this will work better once that is supported.
    0
  • TechBill
    Hey there! In general, this sounds more like you want a daemon than a script, as that isn't associated with a certain user, but does run as root. If you have a certain script in mind you could add the "&" symbol to the end of it to run in the background of bash, but I'm not sure if that's what you're looking for or not. Cron jobs are not re-executed after a reboot, until the next time they are triggered. cPanel doesn't officially support Docker yet (although we're getting there) so it's possible that some of this will work better once that is supported.

    Daemon is the word I was looking for .. The docker I am setting up is n8n -
    0
  • cPRex Jurassic Moderator
    You'd have to have the command executed again after a reboot in order for that process to restart in the background. We'll make an announcement once we support Docker, but I know it's in the works and something a lot of users have asked for.
    0
  • TechBill
    You'd have to have the command executed again after a reboot in order for that process to restart in the background. We'll make an announcement once we support Docker, but I know it's in the works and something a lot of users have asked for.

    We're looking forward to it! For now, we will just tell the users to restart their dockers if for any reason server rebooted like a keneral upgrade etc.
    0

Please sign in to leave a comment.