Difference between revisions of "Systemd debian"
From Teknologisk videncenter
m (→Links) |
m |
||
Line 1: | Line 1: | ||
+ | *Scriptfiles in /lib/systemd/system - See exampels of servicefiles there - add your own reme:: | ||
+ | <source lang=bash> | ||
+ | ....:~$ sudo systemd-analyze verify YOUR_SERVICEFILE | ||
+ | …:~$ sudo systemctl daemon-reload | ||
+ | …:~$ sudosystemctl enable YOUR_SERVICEFILE | ||
+ | ....:~$ sudo systemctl YOUR_SERICEFILE | ||
+ | </source> | ||
Revision as of 09:36, 13 February 2022
- Scriptfiles in /lib/systemd/system - See exampels of servicefiles there - add your own reme::
....:~$ sudo systemd-analyze verify YOUR_SERVICEFILE
…:~$ sudo systemctl daemon-reload
…:~$ sudosystemctl enable YOUR_SERVICEFILE
....:~$ sudo systemctl YOUR_SERICEFILE
Links
- https://www.linux.com/training-tutorials/understanding-and-using-systemd/
- https://learning.oreilly.com/library/view/exploring-beaglebone-2nd/9781119533160/c15.xhtml (Godt eksempel)
- debian.org Create Service
- Eksempel på service lavet i PHP
- systemd services - noget dybere
- Video training - systemd i dybden