Hi Remi,
On Thu, Sep 28, 2023 at 11:37:32AM +0400, Remi L. wrote:
> While this workaround is effective for now, I'm still open to a more proper
> solution if one comes up. If you or anyone else has any further insights,
> I'd greatly appreciate it.
I have the same issue with audio/navidrome: it s
Now it works, thank you for taking the time to assist me in solving this
issue.
While this workaround is effective for now, I'm still open to a more
proper solution if one comes up. If you or anyone else has any further
insights, I'd greatly appreciate it.
Thanks again for your help!
-- Rem
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 sa
On 2023/09/27 22:14, 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.
FWIW I have
What about
const express = require("express");
const app = express();
app.get("/", (req, res) => {
res.send("Hello from OpenBSD");
});
app.listen(80, (err) => {
if (err) {
console.log("Something went wrong: ");
} else {
console.log("Se
I tried to change the JS code:
--8<--
console.log("Read server.js");
// debug require() => node_modules/ access
try {
const express = require("express");
console.log("require() OK");
const app = express();
app.get("/", (req, res) => {
res.send("Hello from OpenBSD");
Thank you for your reply Lucas.
After the changes:
openbsd# rcctl start app
app(ok) -- it takes about 10 seconds to get it done
openbsd# pgrep node
76957
openbsd# cat /tmp/server.js.log
Server started on port 80
openbsd# rcctl stop app
openbsd# reboot
then:
openbsd# pgrep node
openbsd# cat /tm
"Remi L." wrote:
> Hello everyone,
>
> 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 have
Hello everyone,
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 have the impression that it is relat