Skip to content

"watch" function, to restart on file/folder changes #13

@thim81

Description

@thim81

Hi Reddec,

It would be interesting to automatically restart a service application when a file is modified or if there are changes in a directory or its subdirectories:

Example file watch:

monexec ... --watch ./app.js

Example folder watch

monexec ... --watch ./code

and in the YAML file

services:  
- label: Netcat Sample Service  
 command: nc args: - -l - "9000" 
 stop_timeout: 5s 
 restart_delay: 5s 
 watch: ./app.js

Potentially in the future, there could be extensions, like "files to ignore"

Regards,
Tim

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions