in→docs
This commit is contained in:
parent
c3af60bbfd
commit
96f5a0771a
109 changed files with 0 additions and 0 deletions
8
docs/public/systemd/index.rst
Normal file
8
docs/public/systemd/index.rst
Normal file
|
@ -0,0 +1,8 @@
|
|||
systemd
|
||||
=======
|
||||
|
||||
.. toctree::
|
||||
|
||||
system
|
||||
services
|
||||
journal
|
3
docs/public/systemd/journal.rst
Normal file
3
docs/public/systemd/journal.rst
Normal file
|
@ -0,0 +1,3 @@
|
|||
***************
|
||||
Control journal
|
||||
***************
|
38
docs/public/systemd/services.rst
Normal file
38
docs/public/systemd/services.rst
Normal file
|
@ -0,0 +1,38 @@
|
|||
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
|
3
docs/public/systemd/system.rst
Normal file
3
docs/public/systemd/system.rst
Normal file
|
@ -0,0 +1,3 @@
|
|||
**************
|
||||
Control system
|
||||
**************
|
Loading…
Add table
Add a link
Reference in a new issue