Difference between revisions of "Systemd debian"
From Teknologisk videncenter
m |
m |
||
Line 6: | Line 6: | ||
...:~$ sudo systemctl YOUR_SERICEFILE | ...:~$ sudo systemctl YOUR_SERICEFILE | ||
</source> | </source> | ||
− | + | =Often used= | |
+ | <source lang=bash> | ||
+ | # systemctl start [name.service] | ||
+ | # systemctl stop [name.service] | ||
+ | # systemctl restart [name.service] | ||
+ | # systemctl reload [name.service] | ||
+ | $ systemctl status [name.service] | ||
+ | # systemctl is-active [name.service] | ||
+ | $ systemctl list-units --type service --all | ||
+ | </source> | ||
=Links= | =Links= |
Revision as of 09:38, 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
Often used
# systemctl start [name.service]
# systemctl stop [name.service]
# systemctl restart [name.service]
# systemctl reload [name.service]
$ systemctl status [name.service]
# systemctl is-active [name.service]
$ systemctl list-units --type service --all
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