Giter Site home page Giter Site logo

How to run in daemon mode? about nocodb HOT 4 CLOSED

nocodb avatar nocodb commented on April 28, 2024
How to run in daemon mode?

from nocodb.

Comments (4)

indatawetrust avatar indatawetrust commented on April 28, 2024 2
pm2 start --name "xmysql-api" xmysql -- -h localhost -u "" -p "" -d "" -n 5555

from nocodb.

o1lab avatar o1lab commented on April 28, 2024 1

I believe this issue is out of scope of this package. As suggested in stackoverflow - using some of packages (pm2 etc) - this problem could be solved.

@pengyuwei : please paste your solution when you have it working so that others could benefit.

from nocodb.

o1lab avatar o1lab commented on April 28, 2024

May be below link will help ?
https://stackoverflow.com/questions/4018154/how-do-i-run-a-node-js-app-as-a-background-service

Try and please let us know what helped.

from nocodb.

pengyuwei avatar pengyuwei commented on April 28, 2024

I followed the method of this article to create an /etc/systemd/system/en.service file

[Unit]
Description=en

[Service]
ExecStart="/usr/local/bin/xmysql -h 127.0.0.1 -u en -p password -d en"
Restart=always
User=nobody
Group=nogroup
Environment=PATH=/usr/bin:/usr/local/bin
Environment=NODE_ENV=production
WorkingDirectory=/var/www/en/

[Install]
WantedBy=multi-user.target

I got a syslog error:

Jan  6 18:28:16 iZ2zefhslbbsg5n4c65ooiZ systemd[6976]: en.service: Failed at step EXEC spawning /usr/local/bin/xmysql -h 127.0.0.1 -u en -p password -d en: No such file or directory
Jan  6 18:28:16 iZ2zefhslbbsg5n4c65ooiZ systemd[1]: en.service: Main process exited, code=exited, status=203/EXEC

but /usr/local/bin/xmysql is exist:

# /usr/local/bin/xmysql -h 127.0.0.1 -u en -p password -d en



          Generating REST APIs at the speed of your thought.. 

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
                                                            
          Database              :    en
          Number of Tables      :    1
                                                            
          REST APIs Generated   :    19
                                                            
                                                            
          Xmysql took           :    0 seconds
                                                            
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

from nocodb.

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.