[systemd-devel] user startable services in systemd context

Marius Tolzmann tolzmann at molgen.mpg.de
Thu Apr 7 05:55:23 PDT 2011


Hi again..

we have a setup where every user can start its own services
(e.g. a webserver, database server, whatever).

if the user wants this service to be started after a reboot he just
tells us the name of its startup files and we add those to our startup
system. The service is then started with user privileges.

the user is able to stop and start the service any time..

is there a way this kind of setup can be configured in systemd?

thats what we would like to do:
- start services unprivileged (this already works with systemd)
- let the user start, stop, restart his service

currently the user is able to stop his service (e.g. just kill it) but
then systemd complains about a "stopped" service. if the user starts his
service again he starts it in his user session/cgroup which gets moved
to the users master session/cgroup after a logout. this is not very nice.

so i like to clean this mess up a bit but havn't found much information
how this could already be done or if it is even planned to be a possible
configuration in the future.

bye marius


-- 
Dipl.-Inf. Marius Tolzmann <marius.tolzmann at molgen.mpg.de>
----------------------------------.------------------------------
MPI f. molekulare Genetik         |
Ihnestrasse 63-73, D-14195 Berlin |   ==> MarIuX GNU/Linux <==
Phone: +49 (0)30 8413 1709        |
----------------------------------^------------------------------
God put me on earth to accomplish a certain number of things.
Right now I am so far behind..
   ..I will never die.         <by calvin from calvin&hobbes ;)>


More information about the systemd-devel mailing list