want to write a systemd service file where a user may not exist.
peter at bsqt.homeip.net
Sat Feb 11 15:10:54 UTC 2017
On Sat, Feb 11, 2017 at 8:47 AM, Colin Law <clanlaw at gmail.com> wrote:
> On 11 February 2017 at 13:40, Oliver Grawert <ogra at ubuntu.com> wrote:
> > hi,
> > On Sa, 2017-02-11 at 13:28 +0000, Colin Law wrote:
> >> ues.
> >> As Oliver has pointed out it depends how it is installed (though
> >> until
> >> he provided the details I was unsure of what the difference is -
> >> thanks Oli). Plenty of packages install not enabled. If I remember
> >> correctly nodered is an example. So I don't think it is an Ubuntu
> >> policy, it is up to the individual package maintainer.
> > well, it is a debian policy (which ubuntu inherits) that all services
> > of a package should be started at install time by default ... but that
> > doesn't mean there isn't a way around it ;)
> I stand corrected
> Thanks again
I'm starting to think the simple way to do this is to create a second
package 'foo-server' that contains only the service and init file and
creates the user when installed.
Clients would only install foo.deb, but people who want the server thing
would install foo-server package, and the user would be created.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ubuntu-users