[systemd-devel] user startable services in systemd context
Marius Tolzmann
tolzmann at molgen.mpg.de
Fri Apr 15 08:42:56 PDT 2011
Hi..
is there a simple or documented way to start a user systemd at boot time?
when i create a unit for systemd --user including the PAM setup a
user-systemd gets started under the specified user.
- is it intended that there stays a strange process named: "sd:pam"
running as root? seems to be a child of the user-systemd process.
- how can the user manage it's user-systemd with systemctl (--user)?
or better: how should a users dbus daemon be setup to get connected
to it's systemd.
any ideas?
have a nice weekend..
marius..
On 04/07/11 16:18, microcai wrote:
> ? 2011?04?07? 20:55, Marius Tolzmann ??:
>
>> 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
>
> use systemd --user
>
>
>> 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