Commit c8f4fa97 authored by Fabio Montefuscolo's avatar Fabio Montefuscolo
Browse files

change mounting points

parent 12ede617
......@@ -5,13 +5,7 @@ RUN apk update && \
apk add dcron && \
rm -rf /var/cache/apk/*
VOLUME [ \
"/etc/periodic/15min", \
"/etc/periodic/hourly", \
"/etc/periodic/daily", \
"/etc/periodic/weekly", \
"/etc/periodic/monthly" \
]
VOLUME /etc/periodic
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
......
......@@ -6,8 +6,8 @@ image by adding tools you need, like rsync, ssh, ncat or others.
## Using
You should mount a folder with your scripts in crond container. The mounting
points are described by their folder name.
You should mount a folder with your scripts in crond container. The folders
watched by cron daemon are:
* /etc/periodic/15min
* /etc/periodic/hourly
......
......@@ -2,6 +2,12 @@
DAEMON=crond
mkdir -p /etc/periodic/15min
mkdir -p /etc/periodic/hourly
mkdir -p /etc/periodic/daily
mkdir -p /etc/periodic/weekly
mkdir -p /etc/periodic/monthly
stop() {
echo "Received SIGINT or SIGTERM. Shutting down $DAEMON"
pid=$(cat /var/run/$DAEMON/$DAEMON.pid)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment