Add alias for timer services
This commit is contained in:
parent
93e84a6675
commit
e72b25df04
3 changed files with 17 additions and 0 deletions
|
|
@ -140,6 +140,13 @@ docker exec -it <container> bash
|
|||
systemctl list-timers
|
||||
```
|
||||
|
||||
### Manual Timer Service Execution
|
||||
- `dl-subs-yt` - Check YouTube subscriptions and download new videos
|
||||
- `smart-report-now` - Run SMART disk health report manually
|
||||
- `container-update-now` - Update container images manually
|
||||
- `borg-backup-now` - Run backup manually
|
||||
- `borg-check-now` - Run backup integrity check manually
|
||||
|
||||
## Notes
|
||||
|
||||
- Borg backups need passphrase at `/etc/borg-passphrase`
|
||||
|
|
|
|||
|
|
@ -55,6 +55,11 @@ in
|
|||
chmod +x /home/yanlin/.config/nix/scripts/container-update.sh
|
||||
chmod +x /home/yanlin/.config/nix/scripts/gotify-notify.sh
|
||||
'';
|
||||
|
||||
# Shell alias for manual execution
|
||||
environment.shellAliases = {
|
||||
container-update-now = "sudo systemctl start container-updater.service";
|
||||
};
|
||||
|
||||
# Systemd service for container updates
|
||||
systemd.services.container-updater = {
|
||||
|
|
|
|||
|
|
@ -63,6 +63,11 @@ in {
|
|||
# Install the wrapper script package
|
||||
environment.systemPackages = [ smartReportScript ];
|
||||
|
||||
# Shell alias for manual execution
|
||||
environment.shellAliases = {
|
||||
smart-report-now = "sudo systemctl start daily-smart-report.service";
|
||||
};
|
||||
|
||||
# Configure systemd service if enabled
|
||||
systemd.services.daily-smart-report = mkIf cfg.enableSystemdService {
|
||||
description = "Daily SMART Health Report";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue