Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D doc-website
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Systerserver
  • doc-website
  • Wiki
  • Sysadmin tasks

Sysadmin tasks · Changes

Page history
Update Sysadmin tasks authored Sep 24, 2021 by Mara Karagianni's avatar Mara Karagianni
Show whitespace changes
Inline Side-by-side
Sysadmin-tasks.md
View page @ c0087420
......@@ -6,7 +6,7 @@ root: admin1@domain.net, admin2@domain.net, admin3@domain.net
```
**WHY:**
The server sends emails for the security updates* that have been installed overnight and inform the sysadmins if a reboot is necessary.
The server sends emails for the security updates that have been installed overnight and inform the sysadmins if a reboot is necessary.
**REQUIRES:**
that we have enabled unattended updates, see how-to:
......@@ -16,6 +16,10 @@ https://wiki.debian.org/UnattendedUpgrades
In order to receive the latest Debian security advisories, subscribe to the [debian-security-announce](https://lists.debian.org/debian-security-announce/) mailing list.
## Server reboot
**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**
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
......@@ -33,6 +37,10 @@ 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):
```
# systemctl start apache
```
**ALTERNATIVES:**
```
......
Clone repository
  • Container Backups with Restic
  • Mailing Lists Docs
  • Sysadmin tasks
  • Home