Closed Potomac closed 3 years ago
this pull request has bug, please correct the startsecs option like this :
[program:checkstart]
command=/usr/local/bin/ojs-pre-start
startsecs=1
exitcodes=0
here is a new pull request which add automatic installation (no need anymore of OJS_CLI_INSTALL), and add automatic recreation of config.inc.php file (no need anymore to use volume for storing config.inc.php, this file will be recreated on the fly by using docker environment variables and sed commands in recreate_config script)
Hey @Potomac , you should use one PR peer new feature, what i'm seeing is that you're using an old version of the branch, which has the atributes poiting to /var/www/html/files instead of /var/www/files. Can't merge like this, first pull the latest version, second make a PR with separates new features, one for fixing the supervisor, and another with the handle of config.inc.php.
Thanks a lot for your help.
@lucasdiedrich : I fixed the wrong path for upload dir,
for the fixing of supervisor I think my fix doesn't really work, sometimes I get the message "fatal state" for checkstart,
I think the main problem is the fact that supervisor is not suitable for running startup script, it is designed to run daemons, so a better solution is to run ojs-pre-start script with something like systemd (but alpine linux uses a different init software)
A cron script may be work for launching once at boot ojs-pre-start ?
Hi all, I saw plenty of changes on those PRs... and I agree with some but I disagree with others.
We need to keep this work as generic as possible to be useful for developers, testers and sysops... so we need to avoid thinking in just our local scenario.
@Potomac, do you mind to make a PR for each specific change so we can talk about them separately?
Thanks for your work, m.
fix errors messages in supervisord related to checkstart process