From 7a2639ad6382e53232f2212a85549c186c1b4b89 Mon Sep 17 00:00:00 2001 From: Hugh Ratsch Date: Sat, 15 Feb 2025 16:32:12 -0600 Subject: [PATCH] updated notes --- src/rhcsa.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/rhcsa.md b/src/rhcsa.md index 18b57d4..66106c9 100644 --- a/src/rhcsa.md +++ b/src/rhcsa.md @@ -264,21 +264,24 @@ sudo systemctl unmask sshd # Unmask the sshd service sudo nano /etc/systemd/system/myapp.service # [Unit] # Description=My App -# After=network.target # [Service] +# Type=simple # ExecStart=/usr/bin/myapp +# User=myuser ### Creating a timer ### sudo nano /etc/systemd/system/myapp.timer # [Unit] # Description=My App Timer -# After=myapp.service # [Timer] -# OnBootSec=10min -# OnCalendar=daily +# OnBootSec=10min # Run the timer 10 minutes after the system starts +# OnCalendar=*-*-* 10:00:00 # Run at 10:00 AM every day + +# [Install] +# WantedBy=graphical.target # Run the timer on the graphical target ### Tying the timer to the service ### sudo systemctl link /etc/systemd/system/myapp.timer