Skip to content

A Bash script that automates the execution of the 'systemctl' command on multiple servers with multiple applications on each server

License

Notifications You must be signed in to change notification settings

ravabl/Systemctl-Automator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Systemctl-Automator

About

A Bash script that automates the execution of the 'systemctl' command on multiple servers with multiple applications on each server

Prepare script

For the script to work correctly, you need to provide values for the following variables:

  • Username and password

Note: you can certainly modify the script as you see fit and include username and password
input as a security measure, so that the script’s operation aligns more closely with security
requirements. However, since the connection uses the SSH protocol, it is likely that the password
of an authenticated user will be cached on the server side, making it unnecessary to enter it every time

  • List of servers
  • List of applications

How to start?

./automator.sh

Usage

The script executes the sudo systemctl command on the server after entering 3 types of variables in the console:

  1. Variables (or a range of servers using a dash '-') assigned the name of the server.
  2. Variables assigned the name of the systemd unit.
  3. The systemctl command that should be executed on the server.

About

A Bash script that automates the execution of the 'systemctl' command on multiple servers with multiple applications on each server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages