@@ -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
|
||||
Reference in New Issue
Block a user