Giter Site home page Giter Site logo

Comments (5)

Alex1990 avatar Alex1990 commented on July 26, 2024

When I type /etc/init.d/node-app start to test in the terminal, it's ok.
When I reboot, the above problem will happen.

from node-startup.

bastiwasni avatar bastiwasni commented on July 26, 2024

I got the same issue on Debian 6.

When I test it with /etc/init.d/node-app start everything works fine.

On reboot my log file writes this:

/var/www/vhosts/localapp.7goods.de/node/app.js: line 1: syntax error near unexpected token ('/var/www/vhosts/localapp.7goods.de/node/app.js: line 1: var http = require('http');'

index.js file:

var http = require('http');
//...

from node-startup.

ralyodio avatar ralyodio commented on July 26, 2024

Can you try setting the force flag on reboot? in the init.d script change this line to true:

FORCE_OP=false

from node-startup.

bastiwasni avatar bastiwasni commented on July 26, 2024

Yes I tried it already. But it doesn't change anything.

from node-startup.

ianpgall avatar ianpgall commented on July 26, 2024

@Alex1990 The log and pid directories don't require root permissions. It all depends on how you setup the config, how you run the script, and permissions of the locations. If you run the script as a normal user, the normal user will own the files. If you run the script as root, the files will be created and owned by root, so your normal user won't be able to modify them after that point.
A possible solution, that I'm not sure is correct, is to have the script set less strict permissions on the files.
I just want to make sure - the original problem you were having was only happening on restart, right? If you started fresh, used root account for everything, and restarted, do you have the same problems?

from node-startup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.