Difference between revisions of "Systemd debian"
From Teknologisk videncenter
m |
m |
||
Line 1: | Line 1: | ||
*Scriptfiles in /lib/systemd/system - See exampels of servicefiles there - add your own reme:: | *Scriptfiles in /lib/systemd/system - See exampels of servicefiles there - add your own reme:: | ||
<source lang=bash> | <source lang=bash> | ||
− | + | ...:~$ sudo systemd-analyze verify YOUR_SERVICEFIL | |
− | + | ...:~$ sudo systemctl daemon-reload | |
− | + | ...:~$ sudosystemctl enable YOUR_SERVICEFILE | |
− | + | ...:~$ sudo systemctl YOUR_SERICEFILE | |
</source> | </source> | ||
Revision as of 09:37, 13 February 2022
- Scriptfiles in /lib/systemd/system - See exampels of servicefiles there - add your own reme::
...:~$ sudo systemd-analyze verify YOUR_SERVICEFIL
...:~$ 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