Questions tagged [startupscript]

158 questions
0
votes
1 answer

Write to MySQL databse on Pi startup using Python

My Raspberry Pi hosts a MySQL database. When my Pi starts it runs a python script which writes to the database. The script writes the date, time and IP address to the database. The python script to do this runs perfectly when running it from the…
0
votes
0 answers

Starting Node app when AWS server is booting up

I was wondering if it was possible to call "npm run start" while the machine is booting up by adding it to one of our boot up services. We tried just adding in the command to one of our startup scripts and it fails with some internal error, the only…
0
votes
1 answer

Only first line of startup script working

On Fedora 27 mate, I am trying to execute two lines to make two VNC servers when the computer logs in. But it is only executing the first line. If i split the script into two files it works. Is there a way to have it in one script? I tried…
0
votes
0 answers

Launch the "Associate a file type or protocol with a program" app from the command line

Every time I reboot Windows 10 build 1709, my web browser gets set back to Internet Explorer. This is just something I accept about life in the enterprise. However, we do have another approved browser, Google Chrome. So, I set my browser back to…
0
votes
1 answer

Keep screen alive after startup script finished on Compute Engine

I am running a startup script on Compute Engine,env is Ubuntu 16.04 , the script is running a screen and then running a process inside the screen. All the echo lines are printed onto the Serial port 1 screen. The problem is when I SSH into the…
0
votes
1 answer

PM2 to restart automarically after crash

I have some DigitalOcean droplet with small amount of RAM, but there I should to host a lot of pm2 processes (to be more accurate, 9 - 8 in cluster mode (with provided -i 0) and 1 in fork mode). These processes are NodeJS Express servers that do…
Limbo
  • 2,123
  • 21
  • 41
0
votes
2 answers

Ubuntu - How to run python script after logging in?

I created a simple python script to change my ubuntu wallpaper. I want to this script run after whenever I logged in. I tried to add command in startup application as python /bin/wallpaper_changer.py but it doesn't work. I also tried to add a…
0
votes
1 answer

startup script does not initialize global object

I have a custom linker script for an stm32f4 chip, mostly working; the application start-up and run, global array and variable are correctly initialized BUT global object are not. I found around some reference to ctor usage instead of __init_array…
mauro
  • 69
  • 1
  • 5
0
votes
1 answer

Bash script won't run at startup

I've made the following bash script, and added it under startup scripts for a google cloud VM. It doesn't seem to do anything however, and i cant quite understand why. Here is the code. I'm unexperienced in .sh scripts, so i might be missing…
0
votes
1 answer

Open app as gui via powershell for a specific user

I have an app that needs to run as a GUI, I'm trying to automate it's launch at startup without the need to remote desktop to the windows server 2008 R2 and manually start it. I currently use a powershell script at startup to perform multiple tasks…
0
votes
2 answers

building docker container with startup scripts via ansible

I am trying to build docker container which should include startup scripts in container's /etc/my_init.d directory via ansible. I have difficulty finding any documentation how to do this. Here is relevant portion of my yaml file: - name: Create…
Dimon Buzz
  • 1,130
  • 3
  • 16
  • 35
0
votes
1 answer

How to run a Matlab script/m-file through batch file on system startup?

I've got a Matlab script which needs to be run every time the system reboots. I've got the Matlab setup on a system server. The system reboots every week (On Sunday, but not specific to any time period). Can I run the m-file every time the system…
user3459379
  • 1
  • 1
  • 2
0
votes
0 answers

I have created a script that I want to run when my computer starts up, but it only opens the file

The script file I have created only opens the file itself when the computer starts up. It will not simply run. What can i do to get it to run rather than just open the file?
Bailey Spell
  • 43
  • 1
  • 7
0
votes
0 answers

ffmpeg transcoding process stops after 15min

im starting 2 ffmpeg transcoding processes on a raspberry pi (raspbian) when booting. After around 15 min, both processes stops. I have tried with delay etc. in startup script, also start it with both root and normal user privileges. Same result…
p3tter
  • 15
  • 1
  • 7
0
votes
1 answer

How the stoppage of a systemd service can trigger the stoppage of different one?

I'm creating a systemd service let's call it B on Ubuntu 16.04 which I'd like on every boot to start after a specific service called A and then run a specific script. So far I've created the service unit file which consists of the following…
dk13
  • 1,461
  • 4
  • 20
  • 47