Edit a startup script - Ubuntu 16.04

Lengkap Disiarkan 6 tahun lepas Dibayar semasa penghantaran
Lengkap Dibayar semasa penghantaran

Hi,

I have a startup script that runs on new created node on [login to view URL] provider, this script installs a software on the nodes and then put on a cronjob that runs a script on the node every 60 seconds.

Once the startup script is done doing its thing, then the script on the node runs every 60 seconds.

I need these 60 seconds to be lowered to 20 seconds, or even down to 15 seconds...my main concern is that the script must have time to finish running before it gets started again. The cron runs a script that does a few checkups, you need to figure out how long that task takes to run, or put in some function that make it so that the script does not run again, while the first attempt is not finished.

I think 15-20 seconds is enough time, i just need to be sure that lowering the cron does not mess things up.

In the addition i need the startup script to create 2gig swap file on the newly created node, i normal do it this way manually:

Run this command first:

dd if=/dev/zero of=/swapfile count=2048 bs=1M && ls / | grep swapfile && chmod 600 /swapfile && ls -lh /swapfile && mkswap /swapfile && swapon /swapfile && nano /etc/fstab

Then run this :

nano /etc/fstab

In the file that opens, add the following line at the end of the file:

/swapfile none swap sw 0 0

Save and close, FINISHED

Make sure this is done on auto on new nodes that run the startup script, should be done right before the cron settings are put in.

Droplets will be running on Ubuntu 16.04 version and have 1 cpu core + 1gig ram

I will share a video that explains this in details, you will get access to one working node and

see what it runs and the scripts that i use.

I need this done asap

Linux PHP Python Shell Script Ubuntu

ID Projek: #15750281

Tentang projek

7 cadangan Projek jarak jauh Aktif 6 tahun lepas

Dianugerahkan kepada:

$50 USD dalam 10 hari
(555 Ulasan)
7.4

7 pekerja bebas membida secara purata $46 untuk pekerjaan ini

vili1977

fix startup script Relevant Skills and Experience ubuntu Proposed Milestones $40 USD - Help wit fixninf sturup script on ubuntu node.

$40 USD dalam sehari
(832 Ulasan)
7.4
AVKor

Hello, I can help you with your project. Соответствующие навыки и опыт I am an expert in Linux (18 years of experience; Debian, Ubuntu, CentOS and many others) and bash/shell scripting. Please look at my profile. Пре Lagi

$50 USD dalam 3 hari
(35 Ulasan)
4.9
sumitgarg44

I can make the best possible adjustments in the scripts.

$50 USD dalam sehari
(36 Ulasan)
4.6
awsdevopro

HI, I can do it right away. Hope to get started it right away. Thanks Relevant Skills and Experience Over the last few years. Proposed Milestones $50 USD - kk

$50 USD dalam 0 hari
(12 Ulasan)
4.3
valabharatr

I can do it for you in $20. I am very good at shell scripting plus have 10 years of experience in managing Linux systems. Allow me one chance, don’t award the project until you are satisfied.

$40 USD dalam sehari
(7 Ulasan)
3.5