Questions tagged [restart]

Restart refers to the process where a software program or system is systematically (and preferably gracefully) shut down then automatically invoked to full functionality without intervention from the user.

Restart is also often referred to as reboot or reset.

Restarting a software program or system is one of the most common ways to troubleshoot problems as it will put the program or system back into a fresh and predictable state

1535 questions
3
votes
3 answers

how to use uwsgi restart django

I have a wsgi.ini file in my project, and I use uwsgi wsgi.ini to run my project.But when I change the django code,I want to restart the project instead kill uwsgi then reload it. The uwsgi official document provide the following methods: #…
cherry
  • 81
  • 1
  • 7
3
votes
1 answer

Why does one of my Docker containers not start automatically on machine boot?

I have two Docker containers, one to run a Jenkins instance, and one to run YouTrack. Their respective starting scripts look like the following: Jenkins: docker run --name jenkins_master --restart on-failure -p 8080:8080 -p 50000:50000 -v…
Markus Weninger
  • 11,931
  • 7
  • 64
  • 137
3
votes
3 answers

Websphere Application Server v7 Configurations without restart?

Does anyone know of any way to make a datasource configuration change in WAS 7 without a complete restart of the app servers? I need to change the database URL and would rather not bring down all my app servers to do so. From what I can gather,…
sma
  • 9,449
  • 8
  • 51
  • 80
3
votes
1 answer

Python matplotlib Animation repeat

I made an animation using matplotlib.animation and FuncAnimation. I know that I can set repeat to True/False to replay the animation, but is there also a way to replay the animation after the FuncAnimation has returned? anim = FuncAnimation(fig,…
Grard
  • 61
  • 2
  • 5
3
votes
1 answer

how can i restart apache2 service using php script?

i am not able to restart server by using exec("sudo service apache2 restart"); in php script. i have given 777 permission to /etc/init.d/apache2. also added www-data ALL=NOPASSWD: ALL to visudo. still can't able to restart using php script.
Nimesh Patel
  • 293
  • 1
  • 11
3
votes
3 answers

Android restart app after clearing cache and data

I have an app which requires data cleaning to work better again. I am clearing data using this, ((ActivityManager)MainActivity.this.getSystemService(ACTIVITY_SERVICE)).clearApplicationUserData(); But cannot restart the app. I tried adding intent…
Vivek
  • 165
  • 2
  • 12
3
votes
1 answer

Launchd task unloads when computer restarts

I have a simple launchd plist file that I am using to run a shell script that is designed to restart the computer:
sag.95
  • 33
  • 3
3
votes
0 answers

Activity restart when attaching or detaching the external keyboard(via OTG cable) and Navbar at bottom(with keyboard switch key) Shows up

I am creating an android application in xamarin. I am using a web view to display a website. To enter the input in the text box i have created custom keyboards, So i have to keep my app in full screen. I have manged to do that and My app is working…
3
votes
3 answers

Restart apache2 via PHP script

I want to restart apache2 when I load a page with the following code: exec('/etc/init.d/apache2 reload', $output, $return); if(!$return) { $result = ""; echo $result; echo…
tuanptit
  • 353
  • 2
  • 5
  • 14
3
votes
2 answers

C# system stopping tray application

I have this C# app which starts at system boot in the tray, and i have the following problem with it, only on Windows XP I can't restart the PC while the application is running. If I use file > exit, it stops ok and then i can restart. but if i try…
Andrei S
  • 6,486
  • 5
  • 37
  • 54
3
votes
2 answers

Android: Service restart after preferences change

I have a Service and a PreferenceActivity that allows the user to edit some preferences. I would like to restart the Service once the user is done with the PreferenceActivity. I understand that I can register onChange listeners for individual…
Ajay
  • 31
  • 1
  • 2
3
votes
1 answer

Does Docker support restarting containers every X seconds

I have a Logstash container that keeps two data sources sync. When it runs, it queries non-synced entries in one database and posts them into the other. I would like to run this container say every 10 seconds. What I have been doing is to specify…
Hasan Can Saral
  • 2,950
  • 5
  • 43
  • 78
3
votes
7 answers

Self restart program on segfault under Linux

Under Linux what would be the best way for a program to restart itself on a crash by catching the exception in a crashhandler (for example on a segfault)?
Waxhead
  • 500
  • 3
  • 16
3
votes
2 answers

Javascript autorestart

I have 8 javascripts which I start via node on my linux machine. what I want is when a script is finished and closed itself it shall automatically restart. Therefore I created a start.sh which looks like this while true; do node 1.js & node 2.js &…
3
votes
0 answers

Android 5.1 real device - service killed but NOT restarted in spite of using START_STICKY

I have created a simple service and calling it from an activity with startService(intent). I am returning START_STICKY from my service's onStartCommand(). I want the service to keep running even if the activity is closed or removed from task list.…
Supratim Haldar
  • 2,376
  • 3
  • 16
  • 26