Opened 6 years ago

Closed 5 years ago

#1896 closed defect (fixed)

Run wcst_import as a daemon process

Reported by: Dimitar Misev Owned by: ahambasan
Priority: major Milestone: 9.7
Component: wcst_import Version: development
Keywords: Cc: Bang Pham Huu, Vlad Merticariu
Complexity: Medium

Description (last modified by Dimitar Misev)

Rather than running in the foreground as a typical program, optionally wcst_import should be able to run as a daemon process in the background; relevant: python-daemon. We could emulate this by running it with nohup, but this doesn't allow very good control.

Starting wcst_import.sh on the same ingredients file while the daemon is already running should exit with an error in this case, and the daemon keeps running.

wcst_import would have options for daemon control, e.g:

  • wcst_import.sh ingredients.json —daemon status
  • wcst_import.sh ingredients.json —daemon start
  • wcst_import.sh ingredients.json —daemon stop

This feature is nice to have for running wcst_import in the background while watching for new files (#1870)

Change History (3)

comment:1 by Dimitar Misev, 6 years ago

Description: modified (diff)

comment:2 by Dimitar Misev, 6 years ago

Owner: set to ahambasan
Status: newassigned

comment:3 by Dimitar Misev, 5 years ago

Resolution: fixed
Status: assignedclosed

todo: update docs and add a test

Note: See TracTickets for help on using tickets.