Run a Shell Script as Systemd Service in Linux In this post,I will make a manual script and register it as a SystemD Service in Linux. Systemd is a software application that provides an array of system components for Linux operating systems. It is the first service to initialize the boot sequence. This always runs with pid 1. This also helps use to manage system and application service on our Linux operating system. We can also run any custom script as systemd service. It helps the script to start on system boot. This can be helpful for you to run any script which required to run at boot time only or to run always 1) Create a script to monitor file system space $ sudo vi /usr/bin/filesystem_check.sh Then, Copy and paste the following script and save your file: #!/bin/bash # Script check filesystem utilization every 120 seconds store in a file while true do date >> /var/log/fs-monitor.txt sudo df -h >> /var/log/fs-monitor.txt sleep 120 done 2) Make t...