Opened 6 years ago

Last modified 6 years ago

#1896 closed defect

Run wcst_import as a daemon process — at Version 1

Reported by: Dimitar Misev Owned by:
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 (1)

comment:1 by Dimitar Misev, 6 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.