... | @@ -23,7 +23,7 @@ Inform the community that a reboot would take place and who wants to join, prefe |
... | @@ -23,7 +23,7 @@ Inform the community that a reboot would take place and who wants to join, prefe |
|
|
|
|
|
List and save all services currently running in a file with a timestamp in the name, before and after the reboot:
|
|
List and save all services currently running in a file with a timestamp in the name, before and after the reboot:
|
|
```
|
|
```
|
|
# systemctl list-units --type=service --state=running > DD-MM-YY-beforeboot
|
|
# systemctl list-units --type=service --state=running,exited > DD-MM-YY-beforeboot
|
|
```
|
|
```
|
|
ref: https://linuxhint.com/list-all-running-services-debian/
|
|
ref: https://linuxhint.com/list-all-running-services-debian/
|
|
```
|
|
```
|
... | @@ -34,7 +34,7 @@ ref: https://linuxhint.com/list-all-running-services-debian/ |
... | @@ -34,7 +34,7 @@ ref: https://linuxhint.com/list-all-running-services-debian/ |
|
|
|
|
|
When server is back again, save the list of services and check for differences
|
|
When server is back again, save the list of services and check for differences
|
|
```
|
|
```
|
|
# systemctl list-units --type=service --state=running > DD-MM-YY-aftereboot
|
|
# systemctl list-units --type=service --state=running,exited > DD-MM-YY-aftereboot
|
|
# diff service-<timestamp>-beboreboot DD-MM-YY-afterboot > diff-services
|
|
# diff service-<timestamp>-beboreboot DD-MM-YY-afterboot > diff-services
|
|
# less diff-services
|
|
# less diff-services
|
|
```
|
|
```
|
... | | ... | |