Hi,
Unfortunately this does not work for my requirements and Monit works just fine with a bash script but only after i log in, so i would prefer this issue would addressed instead. Thanks. ---- On Sat, 23 Apr 2022 04:17:59 -0400 SZÉPE Viktor <mailto:[email protected]> wrote ---- Mike Jakubik https://www.swiftsmsgateway.com/ Disclaimer: This e-mail and any attachments are intended only for the use of the addressee(s) and may contain information that is privileged or confidential. If you are not the intended recipient, or responsible for delivering the information to the intended recipient, you are hereby notified that any dissemination, distribution, printing or copying of this e-mail and any attachments is strictly prohibited. If this e-mail and any attachments were received in error, please notify the sender by reply e-mail and delete the original message. Idézem/Quoting Mike Jakubik <mailto:[email protected]>: > Hi, > > > > I am using the monit with FreeBSD 13 to auto start some custom > elixir apps, however, when i freshly boot the server, it fails with > "env: bash: No such file or directory". It's like monit or the way > it calls bash cant find env, which is strange, and only on bootup. > Subsequent calls to the script work fine after i login with the user > that owns the script. > > > > Thanks. Hello Mike! If you have an ELF binary it is really simple to boot up. If you have an interpreted language (a script) it is much harder. I use old start-stop-daemon to start up a PHP script: https://github.com/szepeviktor/debian-server-tools/blob/master/monitoring/monit/services/_laravel-queue-example You find all my Monit knowledge in that directory. All the best to you! SZÉPE Viktor, webes alkalmazás üzemeltetés / Running your application https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md ~~~ ügyelet 🌶️ hotline: +36-20-4242498 mailto:[email protected] skype: szepe.viktor Budapest, III. kerület
