Find Jobs
Hire Freelancers

ASAP: Create a bash script to act as a watchdog ran via cron

$25-50 USD

Completed
Posted about 7 years ago

$25-50 USD

Paid on delivery
I need a bash script which can be ran every minute from cron. The bash script must perform the following exactly. **check ifconfig to see if the interface tun0 exists: if not, run 'systemctl stop openvpn; sleep 1; systemctl start openvpn when fixed, send an email using ssmtp to every email address in /root/[login to view URL] **check if tun0 has an ip address: if not, run 'systemctl stop openvpn; sleep 1; systemctl start openvpn when fixed, send an email using ssmtp to every email address in /root/[login to view URL] **check if tun0 is down: if yes, run 'systemctl stop openvpn; sleep 1; systemctl start openvpn when fixed, send an email using ssmtp to every email address in /root/[login to view URL] **check if openvpn is running: if not, run 'systemctl stop openvpn; sleep 1; systemctl start openvpn when fixed, send an email using ssmtp to every email address in /root/[login to view URL] **check if tun0 ip address is the same as /root/[login to view URL] if not, send an email using ssmtp to every email address in /root/[login to view URL] with the new tun0 ip address and update the ip address in /root/[login to view URL]
Project ID: 13153728

About the project

4 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Shouldn't take more than a day. I will need to know the content of the file that contains the mails. Thanks.
$50 USD in 2 days
5.0 (16 reviews)
4.2
4.2
4 freelancers are bidding on average $71 USD for this job
User Avatar
Amazon Web Services: Lambda, API Gateway, EC2, Load Balancers, RDS, Elastic Beanstalk, Elastic File System, IAM, VPC, Security Groups, Cloud Formation,, S3, CLoudFront, Redshift, Route 53, Cloud Watch, Kinesis, SNS, SQS and etc. Advertising Technologies: Facebook Graph API's, FB Website Custom Audience, FB Dynamic Product Ads, Real Time Bidding, Retargeting Ads. Programming Languages: C, C++, Java, Go Big Data Technologies: Kafka, Flume, Pig, Memsql, Aerospike, Redis, MemCache and etc. Miscellaneous: Algorithms, Data Structures, Distributed Systems, Operating Systems Databases: Oracle, MySQL, Operating Systems: Windows, Linux, Ubuntu and etc. Web Technologies: HTML, PHP Code Deployments: Puppet, Docker Monitoring: Nagios, Ganglia
$149 USD in 0 day
4.9 (20 reviews)
5.0
5.0
User Avatar
Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I have checked your requirements.i have right skills to work on this assignment my award = superb result = happy client. In a good partnership, good results happen. Good cooking makes good eating!BWe consider our client as our partner. can u provide your email or sky-pe etc for further discussion about the project. I am ready to discuss with you with best Regards
$35 USD in 6 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
West Jordan, United States
5.0
155
Payment method verified
Member since Dec 3, 2012

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.