On Wed, Sep 27 2023, Remi L. wrote:

I am an OpenBSD user and I recently installed Node.js. I managed to create an rc.d script to start a basic Node.js application, but it
only starts manually.

At OpenBSD boot, I can see that the application is started, but it
doesn't work.

I observed same thing with another nodejs application (zigbee2mqtt). As a workaround, I've been starting it from root's crontab using the following:

---
@reboot                                 -n rcctl start zigbee2mqtt
---

And, of course, I'm keeping the service disabled (rcctl disable zigbee2mqtt), so it doesn't run until cron starts.

I know that is not a proper solution, but it might be able to use the same in the meantime.

Regards,

--
Renato Aguiar

Reply via email to