Systemd/User Services/ru: Difference between revisions

Unabomberlive (talk | contribs)
Created page with "<syntaxhighlight lang="nix"> systemd.user.services.my-cool-user-service = { enable = true; after = [ "network.target" ]; wantedBy = [ "default.target" ]; description = "Мой Классный Пользовательский Сервис"; serviceConfig = { Type = "simple"; ExecStart = ''/my/cool/user/service''; }; }; </syntaxhighlight>"
Unabomberlive (talk | contribs)
Created page with "В NixOS пользовательский сервис может быть выражен с помощью {{ic|systemd.user.services.<name>}}, как описано здесь: https://search.nixos.org/options?query=systemd.user.services."
Line 2: Line 2:
Systemd supports running a separate instance of systemd for a given user, allowing the user to control their own services. See here for more information: https://wiki.archlinux.org/title/Systemd/User
Systemd supports running a separate instance of systemd for a given user, allowing the user to control their own services. See here for more information: https://wiki.archlinux.org/title/Systemd/User
</div>
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
В NixOS пользовательский сервис может быть выражен с помощью {{ic|systemd.user.services.<name>}}, как описано здесь: https://search.nixos.org/options?query=systemd.user.services.
In NixOS, a user service can be expressed with {{ic|systemd.user.services.<name>}}, as documented here: https://search.nixos.org/options?query=systemd.user.services
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
This may be useful if you want a user to be able to start, stop, and restart their own instance of a service without needing to make the user a sudoer.
This may be useful if you want a user to be able to start, stop, and restart their own instance of a service without needing to make the user a sudoer.