linux run script at startup centos
NickName:majid Ask DateTime:2018-02-13T09:16:09

linux run script at startup centos

i have nodejs App i want run script at startup centos

my script.sh is

#!/bin/bash
cd /home/mb/Desktop/Voip
gulp

my Executing Commands and Scripts at Reboot & Startup in Centos 7 is

crontab -e

@reboot sh /home/mb/Desktop/script.sh

does not work

Copyright Notice:Content Author:「majid」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/48758091/linux-run-script-at-startup-centos

More about “linux run script at startup centos” related questions

linux run script at startup centos

i have nodejs App i want run script at startup centos my script.sh is #!/bin/bash cd /home/mb/Desktop/Voip gulp my Executing Commands and Scripts at Reboot & Startup in Centos 7 is cronta...

Show Detail

Daemonize a perl script at startup Linux

I have a custom version of CENTOS that I need to run a perl script as a daemon in at all times. To do this I want to get it to run on startup as a daemon. When the machine is on I can daemonize the

Show Detail

Log script at linux startup/shutdown

I'm learning to use shell script on linux (I'm working on CentOS 6.7) and file system too. Now I'm creating a script that writes messages in a text file when the system is started up or shut down. ...

Show Detail

Unable to run metadata_startup_script in Terraform

I have a terraform script resource "google_compute_attached_disk" "default3" { disk = google_compute_disk.default2.id instance = google_compute_instance.default.id } re...

Show Detail

running a script at linux startup

i want to automatically run a simple shell script at linux startup i'm working on arm based board running a qtopia & linux 2.6.28 so,i put my script at /etc/int.d/scriptname and i make it

Show Detail

docker: run python CMD startup script alongside ENTRYPOINT

I have an container based on CentOS, running gunicorn, and serving a flask app. I would like a startup script to run when it's first started, although I would like my entrypoint to remain my gunicorn

Show Detail

cherrypy https script not working with linux startup

Trying to run a cherrypy https server on linux startup. The startup script works with cherrypy running http, but not https. Also, when running https server manually it works, so no library issues t...

Show Detail

Is it possible to run multiple startup script with systemd at startup with Beaglebone Yocto

I was referring to this post to create startup script in BeagleBone Yocto, I have 3 scenario required to run in startup. I am not really sure what is best way to do it, should I create 3 services and

Show Detail

How to make the CENTOS linux to run php

I am using CentOS linux i have installed: CENTOS APACHE PHP The Problem is when i run php file only the code of the file shows not it's self as my phpinfo works fine where i have mistaken &#

Show Detail

Run script automatically on startup: script doesn't work correctly

I want to run a bash script on startup of my Parallella board, which has Ubuntu. I searched in SO, and found the instruction in here: Run automatically program on startup under linux ubuntu

Show Detail