... | ... | @@ -19,7 +19,8 @@ In order to receive the latest Debian security advisories, subscribe to the [deb |
|
|
**PREPARATIONS:**
|
|
|
Inform the community that a reboot would take place and who wants to join, preferably do it with a fellow sysadmin rather than alone.
|
|
|
|
|
|
**COMMANDS**
|
|
|
**COMMANDS:**
|
|
|
|
|
|
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
|
... | ... | @@ -37,10 +38,12 @@ When server is back again, save the list of services and check for differences |
|
|
# diff service-<timestamp>-beboreboot DD-MM-YY-afterboot > diff-services
|
|
|
# less diff-services
|
|
|
```
|
|
|
If any service has not started, it would be listed in the diff-services file. Start the service with (example):
|
|
|
If a service has not started, it would be listed in the diff-services file. Start the service and check its status (example):
|
|
|
```
|
|
|
# systemctl start apache
|
|
|
# systemctl status apache
|
|
|
```
|
|
|
We can use the tab completion for finding the exact name of a service
|
|
|
|
|
|
**ALTERNATIVES:**
|
|
|
```
|
... | ... | |