Create a pid file for cron

This commit is contained in:
flow.gunso
2019-04-24 11:57:57 +02:00
parent 31acb88cde
commit 280b42dc37

View File

@@ -51,6 +51,7 @@ RUN mkdir -p /etc/apt/sources.list.d/ ;\
echo "seafuser" > /etc/cron.allow ;\ echo "seafuser" > /etc/cron.allow ;\
echo "*/20 * * * * /bin/bash /home/seafuser/infinite-seaf-cli-start.sh" \ echo "*/20 * * * * /bin/bash /home/seafuser/infinite-seaf-cli-start.sh" \
> /var/spool/cron/crontabs/seafuser ;\ > /var/spool/cron/crontabs/seafuser ;\
touch /var/run/crond.pid ;\
groupadd -g $GID -o $UNAME ;\ groupadd -g $GID -o $UNAME ;\
useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME