Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

keep services up 2

function finish {
    # re-start service
    sudo service mongdb start
}
trap finish EXIT
# Stop the mongod instance
sudo service mongdb stop
# (If mongod is configured to fork, e.g. as part of a replica set, you
# may instead need to do "sudo killall --wait /usr/bin/mongod".)
Comment

PREVIOUS NEXT
Code Example
Shell :: log the training YOLO 
Shell :: wp plugin install through code 
Shell :: how to install stack haskell in manjarp 
Shell :: how to replace a text and delete other text using sed 
Shell :: bash temporary files 
Shell :: shell script for creating a pod using helm 
Shell :: How to translate to md5 bash 
Shell :: shell command operator and seperator control characters 
Shell :: git push origin deatched hhead 
Shell :: awk alternative linux 
Shell :: kali linux php reverse shell location 
Shell :: multiple-gits 
Shell :: Set Up Imagick 
Shell :: How to turn on ARD on mac using terminal 
Shell :: cmake macos disable code signing 
Shell :: export installed application using cmd 
Shell :: sed prepend to all files 
Shell :: The command below uses du, sort, and head to show the top five largest files, starting from your /home directory: 
Shell :: How can I use Windows PowerShell to find the status of Hyper-V on my laptop running Windows 8.1? 
Shell :: source code not available.. 
Shell :: How To Create Y/N Question On Batch Script 
Shell :: cpu is stuck for 30 sec in ubuntu 
Shell :: Delay app startup on Ubuntu 
Shell :: head and tail command in linux 
Shell :: pyinstaller Failed to execute script pyi_rth__tkinter 
Shell :: bash loggin as root 
Shell :: powershell combine csv files 
Shell :: install thefuck for ubuntu 
Shell :: install zabbix 
Shell :: comments in linux 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =