Perl daemon script

Completed Posted 4 years ago Paid on delivery
Completed Paid on delivery

I have perl script, need to be run only single instance.

If one instance already running witrh certain pid, and run script again it create another process

I want to prevent that, If there already running it should show error and die

I need small addition to script as following bash code to perl

```

#!/bin/bash

CHANGE=$(find /etc/apache2 -cmin -5)

FPM56_CHANGE=$(find /etc/php/5.6/fpm/pool.d -cmin -5)

if [ ! -z "$CHANGE" ]; then

systemctl restart apache2

fi

if [ ! -z "$FPM56_CHANGE" ]; then

systemctl restart [login to view URL]

fi

```

Thanks

Perl Shell Script Linux

Project ID: #20864300

About the project

3 proposals Remote project Active 4 years ago

Awarded to:

kaloyan13

I have done daemon programs, and know how to implement the locking for single instance. Can do it for 30 minutes.

$15 CAD in 1 day
(300 Reviews)
6.8

3 freelancers are bidding on average $17 for this job

goodwork20k

I am good in perl scripting and automation, please let me know if you are good to award this project to me

$20 CAD in 1 day
(30 Reviews)
5.0
Samer058

No thing Relevant Skills and Experience جميل من منظور الجهاز

$17 CAD in 1 day
(0 Reviews)
0.0