docs→rtfd

This commit is contained in:
Marc Beninca 2021-12-11 15:32:21 +01:00
parent 7bc781ed11
commit c7ec1dc5d1
131 changed files with 1 additions and 1 deletions

View file

@ -1,38 +0,0 @@
Services
========
user
----
.. code:: shell
systemctl --user enable name.service
loginctl enable-linger
systemctl --user start name.service
.. note::
enable-linger prevents daemon to be killed at session exit
Example:
* ~/.config/systemd/user/multi-user.target.wants/httpy.service
.. code:: ini
[Unit]
Description=httpy
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/usr/bin/python3 -m http.server 8080
WorkingDirectory=%h/www
Restart=always
[Install]
WantedBy=multi-user.target
.. note::
%h is replaced by the user's home directory