Simple CentOS script: restart a service if file exists

Đã hoàn thành Đã đăng vào 7 năm trước Thanh toán khi bàn giao
Đã hoàn thành Thanh toán khi bàn giao

Hi, I need a very simple script:

I need a script that runs 24/7 constantly monitoring for the presence of a file. If a file exists, (ex: restart_httpd), I want it to delete that file and restart the httpd service (i.e execute 'service httpd restart'). I also need this script to run on server startup.

I am running CentOS 6 and CentOS 7.

Kiến trúc phần mềm Web Hosting

ID dự án: #13618388

Về dự án

7 đề xuất Dự án từ xa 7 năm trước đang mở

Được trao cho:

dkokmadis

Hello from Greece, Would you like to have a chat regarding your project? Do you have root access to the server? Regards, Dimitris

$55 USD trong 1 ngày
(97 Đánh Giá)
5.8

7 freelancer chào giá trung bình$106 cho công việc này

NayaPakistan

A proposal has not yet been provided

$100 USD trong 1 ngày
(109 Nhận xét)
6.2
Shopify

Hello, I want to show you all relevant Demo and Designs which is similar to your project completed previously. To make sure about the requirement set and customizations, I want to discuss this project with you further Thêm

$257 USD trong 10 ngày
(6 Nhận xét)
5.7
romanapanovich

I can implement it Give details Thanks ///////////////////////////////////////// ///////////////////////////////////////

$45 USD trong 1 ngày
(14 Nhận xét)
5.5
comtechies

hi, I can create this script and set up crontab for running it 24 7. I will also give you a documentation explaining the script. Will do extended support as well.

$30 USD trong 2 ngày
(0 Nhận xét)
0.0