A simple shell script wrapper to start / stop / restart NFSv4 service on CentOS / RHEL v.6.x server in a particular order. This script also demonstrates how to use the ln command to create soft links to the same script and take a different action as per $0.

{ 0 comments }

Linux / Unix Script: Simple Process Checker To Find Out If A Service Is Running or Not

A simple shell script to find out whether critical services are running or, not under Linux or Unix operating systems. The script can send notification using email.

$ cat This_shell_script.sh →

RHEL / CentOS Linux: Nginx Chroot Jail Start / Stop / Restart Shell Script

A simple shell script to start / stop / restart chrooted nginx web server under CentOS / RHEL Linux. You must have Nginx web server setup in a chroot (jail) so that you can minimizes the damage done by a potential break-in by isolating the web server to a small section of the filesystem. You can also mount $jail/tmp as a separate filesystem (/images/tmpfile.bin) with the noexec,nosuid, nodev options under Linux like operating systems.

$ cat This_shell_script.sh →

Shell Script To Record Terminal Desktop Sessions Under Linux or Unix Like Operating Systems

A simple shell script wrapper to record current terminal session of a linux or unix desktop.

$ cat This_shell_script.sh →

Curl Shell Script To Purge Cache From Bitgravity Content Delivery Network

A simple shell script to purge Bitgravity cdn cache using API and curl command line. Tested on RHEL 6.x, Debian 6.x, and Ubuntu Linux.

$ cat This_shell_script.sh →

Simple Shell Script To Wake Up NAS Devices Using Linux or Unix Computer

A simple shell to Wake Up nas devices / home servers using Linux and Unix command line.

$ cat This_shell_script.sh →

Shell script: Opens LUKS Partition and Sets Up a Mapping [ Mounting Encrypted Partition ]

A Linux shell script to mount dm-crypt (transparent disk encryption subsystem in Linux kernel) partitions with passphrase.

$ cat This_shell_script.sh →

Linux Shell Script To Backup and Restore MBR (Master Boot Recored)

mbrback shell script creates a backup of your hard drive’s MBR and its partition table. You can then use mbrback to restore the MBR boot code, full MBR, or partition table from the backup files.

$ cat This_shell_script.sh →

Shell Script To Build And Install PHP Xcache Opcode Cache Extension

A simple shell to build and install Xcahce Opcode Cache as module for PHP under CentOS, Fedora and RHEL / Redhat Enterprise Linux.

$ cat This_shell_script.sh →