Skip to content

Commit

Permalink
[5.x] Fix #132 (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
shinsenter authored Nov 18, 2024
1 parent e59912a commit 71e6d40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/php/common/rootfs/etc/hooks/bootstrap/50-crontabs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ debug-echo -i "\nCron is running as $APP_USER.\n\n### Config:\n$(crontab -u $APP
if ! has-s6 && has-cmd crond; then
export APP_PATH="$(app-path)"
export APP_ROOT="$(app-root)"
if [ -f /var/run/crond.pid ]; then kill -9 $(cat /var/run/crond.pid); fi
if [ -f /var/run/crond.pid ]; then kill -9 $(cat /var/run/crond.pid) &>/dev/null; fi
cd $APP_PATH && with-env crond $CRONTAB_OPTIONS;
fi
2 changes: 1 addition & 1 deletion src/php/with-unit/rootfs/etc/cont-init.d/zz-start-unit
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ initial() {
fi

# stop Unit daemon after initial configuration
kill -TERM $(cat ${UNIT_CONTROL_PID:-/run/unit.pid})
kill -TERM $(cat ${UNIT_CONTROL_PID:-/run/unit.pid}) &>/dev/null
while [ -e "$UNIT_CONTROL_SOCKET" ]; do sleep 0.5; done
}

Expand Down

0 comments on commit 71e6d40

Please sign in to comment.