Bash check process
Проверка за работещо приложение в Linux
Bash скриптче, което проверява дали процеса е стартиран ако не е го стартира
#!/bin/sh
SERVICE='proba' if ps ax | grep -v grep | grep $SERVICE > /dev/null
then echo "$SERVICE service running"
else echo "$SERVICE is not running"
echo "Starting $SERVICE"
proba test --local-port 0 --pid-file /var/run/proba/pid
fi
Най-четени
Последно добавени
Категории
-
Altaro Hyper-V Backup
-
Anti Spam Exchange
-
BAT
-
DNS problem in Windows 2008 R2
-
Exchange
-
Ghost image
-
Missing certificate google, yahoo, twitter, facebook
-
MS Office Templates
-
On-line transliterator
-
Pictures to Active Directory&Outlook
-
Regedit
-
Robocopy to NFS share
-
Task Kill remote PC
-
TP-Link & DD-WRT
-
VB Script AD Signature
-
VB script verification of an application running
-
VoIP
-
Windows 2008 R2 printserver Problem
-
Windows 7 Administrative template
-
Windows 7 svhost or microsoft conspiracy
-
Windows installed programs
-
Windows memory performance
-
Windows printer per machine
-
Windows printserver
-
Windows Remote Control
-
Windows USB Restrict