Results 1 to 4 of 4

Thread: run script in background like pm2

  1. #1
    Member
    Join Date
    Feb 2012
    Location
    São Paulo - Brasil
    Posts
    94

    run script in background like pm2

    Hi,

    How I can set a script as service to run forever like pm2.

    REgards,

  2. #2
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,185
    Here you go: https://www.lianja.com/doc/index.php/Background_Tasks

    You may find that on Windows you need to set the Scheduled Task to "Run As Administrator". Security is a good thing.

    Hank
    Last edited by HankFay; 2022-10-27 at 16:46.

  3. #3
    Member
    Join Date
    Feb 2012
    Location
    São Paulo - Brasil
    Posts
    94
    I use Linux and I need run the script per tenant.

  4. #4
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,185
    So each tenant would have their own instance of the app and their own copy of the database, right? And so the folder where the prg for the script is located would have its own path, right?

    And so they would each have their own chron task set to run the pathed script prg, running against their the tenant-identified database.

    Am I missing anything?

    Hank

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us