Better examples

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2026-11-27 16:14:30 +00:00
parent fd658f7545
commit f74df5962e
11 changed files with 152 additions and 25 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env ssm
# logrotate — a oneshot service.
#
# This service runs once and exits. ssm marks it "enabled" after a
# successful run; use the reset-exit action (or `ssm logrotate reset-exit`)
# to let it run again. Schedule the service to run from whatever timer
# you prefer (systemd timer, cron, ...).
service_oneshot = yes
service_command = /usr/sbin/logrotate -f /etc/logrotate.conf