Files
ssm/examples/services/logrotate
T
fbt f74df5962e Better examples
Signed-off-by: fbt <fbt@fleshless.org>
2026-11-27 16:14:30 +00:00

12 lines
396 B
Plaintext

#!/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