Coder Social home page Coder Social logo

Upstart and Logging? about exrm HOT 6 CLOSED

bitwalker avatar bitwalker commented on June 9, 2024
Upstart and Logging?

from exrm.

Comments (6)

bitwalker avatar bitwalker commented on June 9, 2024

Thanks for the kind words!

Regarding an upstart config, I think your best reference for an implementation would be @smpallen99's exrm plugin for building RPMs from a release. He has a script which handles the start/stop/restart stuff. It'll likely be very similar to what you need.

As for logging. Logs are currently pushed to a log directory in the root of your release directory, so on the same level as bin, lib, and releases. There is barely any configuration provided by default, other than telling sasl to log only errors. I'm going to push a change so that sasl logs to log/myapp.log instead, which should be more useful. If you use other logging facilities, you'll need to configure them by adding the relevant configuration settings to myapp.schema.exs and myapp.conf. You can also put configuration in config.exs, but then you won't be able to configure the logging via your .conf file. If you need more info, just let me know!

from exrm.

smpallen99 avatar smpallen99 commented on June 9, 2024

My exrm_rpm plugin creates an rpm that does two things to handle service starting on Redhat Linux distributions:

  • It creates an init script and puts it in /etc/init.d, allowing you to manage the service
  • It does the chkconfig so the service will be automatically started when the linux server starts up

If you need just the init script on a system without the rpm build tools, you can install the plugin and run mix release --rpm on the system. It will create the init script without the rpm build tools.

If you find the plugin useful, but missing something, let me know.

Although I have not tested this yet, I was planning on using the erlang auto restart capabilities to automatically restarting the application if the erlang vm crashes. I still have to verify that the application is started with the correct settings to ensure this works.

from exrm.

malkomalko avatar malkomalko commented on June 9, 2024

Thanks guys... I'll take a look at the repo and see if I can get the Upstart script working on Ubuntu.

from exrm.

bitwalker avatar bitwalker commented on June 9, 2024

@smpallen99 The current boot script sets up the heartbeat monitor, but I don't know if all of the configuration is in place, or if perhaps it's already working. Some testing is likely needed for that scenario. Let me know what you find out on that front!

from exrm.

bitwalker avatar bitwalker commented on June 9, 2024

@malkomalko ping :)

from exrm.

bitwalker avatar bitwalker commented on June 9, 2024

@malkomalko I'm closing this for now. If you have any updates or want to open this up for discussion again, feel free to reopen!

from exrm.

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.