test new file guard and auto deploy
This commit is contained in:
23
backend/example_scripts/README.md
Normal file
23
backend/example_scripts/README.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# Example NFQUEUE Scripts
|
||||
|
||||
Files in this folder are treated as protected example scripts by the API:
|
||||
|
||||
- `*.py`: script source
|
||||
- `*-requirements.txt`: optional pip requirements copied and installed into the script venv
|
||||
- `*.deploy.json`: optional deployment settings for startup auto-deploy
|
||||
|
||||
Protected behavior:
|
||||
|
||||
- scripts are synced from this folder into `/srv/fw-scripts` on backend startup
|
||||
- scripts in this folder cannot be overwritten, disabled, or deleted via the API
|
||||
- scripts with a deploy config containing `qnum` are auto-started as systemd services
|
||||
|
||||
Example deploy file:
|
||||
|
||||
```json
|
||||
{
|
||||
"qnum": 1,
|
||||
"enable_at_boot": true,
|
||||
"extra_args": "--log-level INFO"
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user