Skip to content

Implement standard interface for user services #2190

Closed

Description

@offlinehacker

So i have a working implementation for user services using supervisord for managing processes avalible here: https://github.com/kiberpipa/nix-rehash (directory nix-services). It's using the current systemd interface for services to start user services.

I have found a few problems with systemd current interface for services that would be nice to get fixed in the future:

  • Dual behaviour that we have for handling service pre and post start scripts if user is root or not. Fact is that the most of the times only data directories have to be created as root and everything else should be handled as normal user. I opened issue for createDataDirs here: Implement systemd.services.<name>.createDirs #2189
  • Some commands do not work on osx and this prevents running user services on osx.
  • Post start scripts are not allways avalible in process managers, so relying on that kinda breaks functionality.

There's also an option to create different interface for user services, what do you think about that?

Activity

  1. shlevy commented on Apr 9, 2014

    @shlevy
    Member

    cc @proger who has been working on a service abstraction interface

  2. proger commented on Apr 10, 2014

    @proger
    Contributor

    Hey,
    So what are you trying to achieve? Running services in OS X from an unprivileged user for development?

  3. offlinehacker commented on Apr 10, 2014

    @offlinehacker
    ContributorAuthor

    Running services on any supported nix system, yes.
    On Apr 10, 2014 11:19 AM, "Vladimir Kirillov" [email protected]
    wrote:

    Hey,
    So what are you trying to achieve? Running services in OS X from an
    unprivileged user for development?

    Reply to this email directly or view it on GitHubhttps://github.com//issues/2190#issuecomment-40058209
    .

  4. offlinehacker commented on Apr 10, 2014

    @offlinehacker
    ContributorAuthor

    @proger, can you give details of your interface idea?
    On Apr 10, 2014 2:55 PM, [email protected] wrote:

    Running services on any supported nix system, yes.
    On Apr 10, 2014 11:19 AM, "Vladimir Kirillov" [email protected]
    wrote:

    Hey,
    So what are you trying to achieve? Running services in OS X from an
    unprivileged user for development?

    Reply to this email directly or view it on GitHubhttps://github.com//issues/2190#issuecomment-40058209
    .

  5. Profpatsch commented on Feb 27, 2016

    @Profpatsch
    Member

    (triage) Since someone’s gone forward and built NixUP this can be closed now.
    cc @jagajaga

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions