Horje
script for restart redis service automatically Code Example
script for restart redis service automatically
#!/bin/bash
a=$(redis-cli -p 6379 PING)
if [ "$a" = "PONG" ]
then
    echo 'Already running'
else
    b=$(/etc/init.d/redis_6379 start)   
    echo $b
fi




Shell

Related
kill process by name Code Example kill process by name Code Example
git add and commit all in just one line Code Example git add and commit all in just one line Code Example
how to get specific lines of shell output Code Example how to get specific lines of shell output Code Example
sed with variable Code Example sed with variable Code Example
ubuntu increase volume Code Example ubuntu increase volume Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
13