If you need to execute a shell script or command following the mounting of a particular file system in Linux using systemd, you can do so. For instance, you can run a backup task when a USB hard disk is mounted or adjust specific options at runtime when NFS is mounted.
Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit
The post How to run script after mounting NFS with systemd in Linux appeared first on nixCraft.
Most modern Linux distro uses systemd as init replacement. It is a suite of basic building blocks for Linux distros such as RHEL/CentOS & co, OpenSUSE/SUSE, Fedora, Arch, Debian, Ubuntu, and more. By default, most distro boot into GUI, but you can change to text or vice versa.
Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit
The post How to switch boot target to text or GUI in systemd Linux appeared first on nixCraft.
Whenever we update a critical library such as OpenSSL, we need to restart any daemons that use the library. Systemd with PID 1 itself also uses OpenSSL. How do you restart the systemd daemon without rebooting Linux and other services such as Nginx, SSHD, Firewalld? Here are some tips.
Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit
The post How to restart systemd without rebooting Linux when critical libraries installed appeared first on nixCraft.
![]()
We can easily enable rc.local shell script support on systemd while booting the Linux system. Traditionally, the shell script /etc/rc.local used by developers and Linux sysadmin to call other scripts or commands after all services are loaded. Typically /etc/rc.local get called at the end when Linux init switched to a multiuser runlevel. However, by default. /etc/rc.local support is disabled under systemd. This page shows how to enable and execute rc.local shell script during boot using systemd on Linux.
The post How to enable rc.local shell script on systemd while booting Linux system appeared first on nixCraft.
How do I use the systemctl command to view status of a systemd service on Linux operating systems?
The post How to view status of a service on Linux using systemctl appeared first on nixCraft.
I prefer to use NetworkManager on my Ubuntu desktop, but currently, it is using networkd. As a result, I cannot set up or configure NetworkManager using GUI tools. Is there anyway to change netplan renderer from networkd to NetworkManager running on Ubuntu Linux? How can I change netplan renderer in Ubuntu Linux?
The post Change netplan renderer from networkd to NetworkManager appeared first on nixCraft.