Skip to content

Commit fd32889

Browse files
Exec into crond in init script
Co-authored-by: Matyas Selmeci <mselmeci@wisc.edu>
1 parent 584dc82 commit fd32889

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

opensciencegrid/logrotate/startup.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@
55
echo "$CRON_EXPR /usr/sbin/logrotate $LOGROTATE_OPTIONS $LOGROTATE_CONF" '> /proc/$(cat /var/run/crond.pid)/fd/1 2>&1' | crontab -
66

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

0 commit comments

Comments
 (0)