Giter Site home page Giter Site logo

No sudo when using upstart about deliver HOT 9 CLOSED

gerhard avatar gerhard commented on July 20, 2024
No sudo when using upstart

from deliver.

Comments (9)

gerhard avatar gerhard commented on July 20, 2024

Won't make it into this release...

from deliver.

haad avatar haad commented on July 20, 2024

You can make upstart listen to user commands, too. E.g. on one customer install I made upstart take user script config from .init.d and user was able to start/stop his upstart jobs processes.

If you add this to /etc/dbus-1/system.d/Upstart.conf, everyone in railsapp group will be able to send commands to upstart.

  <policy group="railsapp">
    <allow send_destination="com.ubuntu.Upstart"
           send_interface="org.freedesktop.DBus.Properties" />
    <allow send_destination="com.ubuntu.Upstart"
           send_interface="com.ubuntu.Upstart0_6" />
    <allow send_destination="com.ubuntu.Upstart"
           send_interface="com.ubuntu.Upstart0_6.Job" />
    <allow send_destination="com.ubuntu.Upstart"
           send_interface="com.ubuntu.Upstart0_6.Instance" />
  </policy>

Upstart init configuration scripts are then placed at ~/.init/ directory.

from deliver.

gerhard avatar gerhard commented on July 20, 2024

Very nice find ; ). I will look into this some more - thanks!

from deliver.

gerhard avatar gerhard commented on July 20, 2024

Now that most people should have migrated to 12.04, this might be helpful: Upstart Load User Jobs & Upstart User Job

from deliver.

alexcurtis avatar alexcurtis commented on July 20, 2024

Is there any way around the sudo upstart issue? -- Could we have a separate 'runas' user for foreman so the application can still be sandboxed? At the moment we seem to have a single user for both delivery and running the application.

from deliver.

gerhard avatar gerhard commented on July 20, 2024

@alexcurtis this has been open for far too long, I will look into this today and get back to you with a temporary solution.

from deliver.

alexcurtis avatar alexcurtis commented on July 20, 2024

@gerhard thanks :-)

from deliver.

gerhard avatar gerhard commented on July 20, 2024

@alexcurtis see #59, in particular the last commit.

from deliver.

gerhard avatar gerhard commented on July 20, 2024

The deliver successor (yes, it is happening!) will leverage runit most likely which has full support for user jobs. Closing this as it's outside the scope of the upcoming final release.

from deliver.

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.