- Asterisk – Modular Dialplan
- Asterisk Dialplan Module – stdexten
- Bash Script – An Alternative to Logrotate.d for Asterisk Log Files
- Bash Script – Auto-Repair an Array of MySQL Database Servers
- Bash Script – Convert a Batch of WAV Files to SLINEAR Format for Asterisk Hold Music
- Bash Script – Install HP Server Management Tools on Ubuntu Server
- Bash Script – Log Concurrent Asterisk Calls to MySQL and Other Useful One-Liners
- Bash Script – Move Asterisk Call Files into Spool Directory
- Bash Script – Move Files into Subdirectories Based on Modified Date – OR – Moving Ntop Netflow Dumps into Subdirectories by Date
- Bash Script – OpenMCU-ru Service Monitor -OR- Monitor and Automatically Restart a Service Upon Failure
- Bash Script – Pcapsipdump Spool Directory File Rotation – OR – Rotate Directories Based on YYYYMMDD Format
- Bash Script – Script Based MySQL Table Replication on an Array of Slaves
- Bash Script – Sync a File to an Array of Hosts
- Bash Script – Test Veeam Linux Agent Socket and Restart Service if Needed
- Batch Script – Get User’s SID One-Liner
- Batch Script – Parse MS Exchange IIS Log File, Filter All External Requests, and Email It
- Batch Script – RDS Start Menu Application and Taskbar Shortcut Removal Tool
- Batch Script – Ribbon UI Customization: Take Ownership and Change Permissions of the CommandStore Subkeys in the Registry
- Batch Script – Sending Items to the Recycle Bin Without Calling Any Third-Party Applications
- Batch Script – Zip/Compress Files Without Calling Any Third-Party Applications
- Cisco SPA500S Excel Sidecar Template
- KB947222 – Addressing the User Profile Redirection Display Problem with a Different Approach
- Mikrotik Scripting – Array Pop Function
- Mikrotik Scripting – Array Push Function
- Mikrotik Scripting – Function to Split an IP Address into an Array
Bash Script – OpenMCU-ru Service Monitor -OR- Monitor and Automatically Restart a Service Upon Failure
I threw this service monitoring script together because occasionally the OpenMCU-ru process in the developmental versions can crash out on my Ubuntu Server from time to time, so I wanted it to auto-restart. The script could easily be modified and used for any other service you like, but it was written specifically for OpenMCU-ru and Debian based operating systems.
There are two pieces to this puzzle (which makes for an awfully pathetic and simplistic puzzle), the “/etc/init.d/mcu-monitor” startup script to run the monitoring script as a daemon and the “/usr/local/bin/mcu-monitor.sh” monitoring script itself, both are fairly simple and straight forward. Continue reading “Bash Script – OpenMCU-ru Service Monitor -OR- Monitor and Automatically Restart a Service Upon Failure”