Skip to content

Commit

Permalink
Exec into crond in init script
Browse files Browse the repository at this point in the history
Co-authored-by: Matyas Selmeci <[email protected]>
  • Loading branch information
mwestphall and matyasselmeci authored Jan 17, 2025
1 parent 584dc82 commit fd32889
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion opensciencegrid/logrotate/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
echo "$CRON_EXPR /usr/sbin/logrotate $LOGROTATE_OPTIONS $LOGROTATE_CONF" '> /proc/$(cat /var/run/crond.pid)/fd/1 2>&1' | crontab -

# Start cron in non-daemon (foreground) mode
crond -n
exec crond -n
echo >&2 "Exec failed!"
exit 255

0 comments on commit fd32889

Please sign in to comment.