Update TEMPLATES.md
This commit is contained in:
@@ -296,7 +296,7 @@ esac
|
||||
```
|
||||
|
||||
### logs.sh
|
||||
Shows container logs:
|
||||
Shows container logs. **OPTIONAL** - if provided, `dropshell log SERVER SERVICE` (or `dropshell logs`) will execute this script and display the output.
|
||||
|
||||
```bash
|
||||
#!/bin/bash
|
||||
@@ -306,6 +306,12 @@ _check_required_env_vars "CONTAINER_NAME"
|
||||
docker logs "$CONTAINER_NAME" "$@"
|
||||
```
|
||||
|
||||
**Usage:**
|
||||
```bash
|
||||
dropshell log myserver myservice
|
||||
dropshell logs myserver myservice # Alias
|
||||
```
|
||||
|
||||
### check-config.sh
|
||||
|
||||
Validates the service configuration without restarting or modifying the service. **OPTIONAL** - if not provided, `dropshell check-config` reports that the template doesn't support this command.
|
||||
|
||||
Reference in New Issue
Block a user