Questions tagged [startup]

1

votes
2

answer
6.2k

Views

Aws Ec2 run script program at startup

There is a method to setup an EC2 machine to execute Kafka starting script on startup? I use also java Aws SDK, so I accept both solution for a program java that run command on EC2 instance and solutions for a bash script mode that run kafka script at startup.
1

votes
3

answer
11.8k

Views

Creating Windows Startup Services via REG or Command Line

I have a Java program which needs to be a startup program that runs as administrator. It seems that cannot be done without making it a service. I have tried using HKLM\SYSTEM\CurrentControlSet\Services\Services\MyService. I tried something similar to what Google Updater uses (they use ...\Services\g...
Dorothy
1

votes
2

answer
65

Views

Setting up emacs on new machine with init.el and package installation

Like presumably many emacs users I have my own emacs config file ~/.emacs.d/init.el for configuring emacs the way I like. So when I start using a new machine I copy my emacs config file to it. Now, the problem is that my emacs config file depends on a few packages that I have installed via the emacs...
janneb
1

votes
0

answer
109

Views

How to edit /etc/rc.local when raspbian shuts down immediately

I dun screwed up. I have a raspberry pi zero W and I have a project that needs to be as low power as possible. For my use case it's ok for the raspi to be powered down for long periods as it just needs to send a wifi message in response to a button being triggered. So I edited /etc/rc.local to run m...
nickvans
1

votes
1

answer
115

Views

CORS vs Autofac vs Exception handling middleware in Owin, which one goes first?

I have an owin setup that among many other things, uses CORS and Autofac. The Autofac documentation says 'Register the Autofac middleware FIRST.', many people say app.UseCors should be the very first thing. I also have an exception handling middleware, which many people also say should be the first...
BlackTigerX
1

votes
0

answer
25

Views

Custom boot-up program/procedure to force shut-down based on time

I would like to program a custom program or bootup procedure for my laptop that checks the computer's time, and either boots up as normal or displays a message if the current time is between X and Y, which either forces me to shut it down, or shuts down automatically. Can this be done, and how do...
DaCodeMonkey01
1

votes
1

answer
96

Views

How to run code a single time on django channels server startup?

Django 1.7+ has AppConfig.ready (docs), however it seems to be running multiple times with Django Channels. How can I ensure that the code runs exactly once, even with multiple workers? I'm searching for a solution that works both with the dev server and with daphne. Here is something I want to achi...
Xilexio
1

votes
1

answer
1k

Views

Remove programs from Windows startup with a .bat file

I am trying to create a .bat file that removes applications from Startup in Windows 10. What I am trying to achieve is that after the .bat file has been executed these apps are removed and won't start automatically the next time Windows boots. I have also integrated other functions in this file, but...
user4421334
1

votes
0

answer
178

Views

Stop Cassandra update automatically

Please help me how I can stop Cassandra update automatically? At present when I install Cassandra through opscentre I get an error. Unable to restart DSE service. See /var/log/cassandra/system.log and /var/log/cassandra/output.log on the target node for details. system.log ERROR [main] 2018-03-28 0...
Ranjeet Ranjan
1

votes
0

answer
435

Views

Timeout after [300] seconds waiting for service container stability while finalizing an operation

I'm getting many errors like a timeout awaiting for service container stability and IllegalStateException becaus component is stopped but I'm not sure what is provoking this misperformance My project consist of three modules an ear, an ejb and an war, and ejb has beans.xml on resources/META-INF and...
Joe
1

votes
1

answer
18

Views

Will the gem -https://github.com/cequel/cequel (that itself uses https://github.com/datastax/ruby-driver) work with DSE 6.0?

Will the gem https://github.com/cequel/cequel (that itself uses https://github.com/datastax/ruby-driver)  work with DSE 6.0?
Mehdi
1

votes
0

answer
699

Views

Difference between HOT and WARM app start

Please, If someone can explain, what is the difference between hot start and warm start, for android apps? Here Startup times for HOT and WARM start it says, that is start when app is closed then opened again that's how I am understood..
John Doe
1

votes
0

answer
530

Views

How to improve slow app startup in Xamarin Forms?

I've been trying to improve the app startup time of my app without any success. I'm using MvvmCross, but based on my logs, the slowdowns seem to occur before it even gets to the MvvmCross initialization part. Once it gets there, it seems to be quite fast. I even tried removing all my initialization...
1

votes
0

answer
225

Views

How to run junit test case after bootRun (server startup) using gradle

In my spring boot application I have junit test case. I implemented with application listener which will do certain task after server start up. Now I need to run the Junit test case after the bootRun. Basically the application runs like this., I am using gradle build script. compile->build (running...
ArockiaRaj
1

votes
1

answer
73

Views

Application in background and after reboot is not working

I have turned on startup manager https://colapps.zendesk.com/hc/en-us/articles/217203146-OPPO-F1-No-Notificatons-Startup-Manager and battery optimization option Permissions given: Boot complete Recevier and Battery optimization code: if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { Intent i =...
1

votes
1

answer
358

Views

Is there a way to increase windows service startup timeout for a specific service?

I need to increase a startup timeout for one of my windows services (startup=automatic) to be able to start it after a reboot. It starts normally if I start it manually or use startup=delayed type, but I would like to keep it automatic I can increase it by changing ServicesPipeTimeout registry key,...
1

votes
1

answer
206

Views

How to run method on startup and schedule according the the cron expression and avoid parallel execution

I want to run job every day at 14:00. Also I want to run that job after application startup. This job is long enough(lets say 10 min) and I am afraid what happens if startup happens at 13:58. I want to forbid concurrent task execution. Will the below work? @Scheduled(cron = '0 14 * * *') public voi...
gstackoverflow
1

votes
1

answer
59

Views

Wpf app not start up with windows when cinstall like uwp package

I wanna start up my wpf app with windows. But it isnt work when i install it like an uwp app. This is the code which set start up in run time: static public void SetStartup() { DeleteStartup(); RegistryKey rk = Registry.CurrentUser.OpenSubKey('SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run', tru...
GAMING BEX
1

votes
0

answer
69

Views

How to write test case for Configure method in startup.cs ASP .Net Core Application

public void Configure(IApplicationBuilder app, IHostingEnvironment env) { //Something } I'd like to add test cases for the above method in .Net core startup.cs file. is there any ways to do??
vetriselvan
1

votes
0

answer
91

Views

Tomcat 9: “FindClass Main failed” error when starting the service

I have this error when I'm starting the service. std-err.log: 2018-09-25 02:03:59 Commons Daemon procrun stderr initialized java.lang.NoClassDefFoundError: Main Caused by: java.lang.ClassNotFoundException: Main at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.lo...
xMichal
1

votes
0

answer
57

Views

C# Application not starting in a single PC

I have an application that runs on a large number of PC's. In a single computer it doesn't start and the windows event viewer produces the following log (which was sent to me by the Client): Log Name: Application Source: .NET Runtime Date: 11/10/2018 17:00:31 Event ID: 1026 Task Ca...
dorgoldi
1

votes
0

answer
93

Views

.NET Core UseExceptionHandler DI

I inject a custom error logging and reporting service into my services collection during Startup.ConfigureServices. services.AddTransient(); I then add a global error trap in Startup.Configure. app.UseExceptionHandler('/Home/Error'); Then in Home.Error, I have my DI for ErrorService, and I pass it m...
Brian Kitt
1

votes
0

answer
496

Views

System.Runtime, Version=4.2.1.0, PublicKeyToken=b03f5f7f11d50a3a has a higher version than referenced assembly

I upgraded my ASP.NET CORE application from sdk .NET Core 2.0 to .NET Core 2.1. I can run the solution in my localhost but when I deploy it to another server there is an exception. And the exception is below. The steps I have done to solve the issue so far are below and it throws the same error wi...
user10358804
1

votes
1

answer
51

Views

ASP>NET Core 2.1 : New class instance inside app.Map

I have a middleware to fetch HTTP-requests that begin with 'proxycall', and only those. I thought I could call the middleware inside an app.map in startup.config, but the problem is that I don't know how to instantiate it. Here are my Program file: public static void Main(string[] args) {...
Olof84
1

votes
0

answer
31

Views

AspNet MVC restrict routing to resolve controllers from a certain assembly

I have an Asp.Net Web Forms project, later on I've added the WebApi support to it, so now I can access both the .aspx pages + controller action api. Now, The startup process takes up to 50 seconds, after profiling, I've noticed that one of the issues is System.Web.Http.Routing.AttributeRoutingMapper...
amd
1

votes
1

answer
34

Views

Using a combination of MapWhen and ApplicationBuilder in .net core app startup?

Is it possible to have partially a branching startup? As an example, is it possible to have something like: public void Configure(IApplicationBuilder app, IHostingEnvironment env) { app.AlwaysUseThisMiddleware(); app.MapWhen(conditionA, appBuilder => {appBuilder.SometimesUseThisOne;}) app.MapWhen(co...
David G.
1

votes
6

answer
1.4k

Views

Sending a password to a Windows Service

What is the best way to send a password to a Windows Service? Our application needs a password in order to start. I don't care that services are 'normally' supposed to run without user interaction. Its good enough for us that an operator can start the application and then log off. On a unix system...
1

votes
1

answer
958

Views

Need to install service in vista with Admin rights and startup behaviour

I need to be able to programatically (from an installer program) install and run a windows service so that it will have elevated admin rights (the installer app has already elevated by this point), and also that it will restart at system startup with elevated rights. Is this possible?
1

votes
2

answer
2.2k

Views

Application on windows startup C#

i have designed an application which validates users against online database and then allow users to work, after authentication it shows desktop, it loads on startup. i would like to start my login application at windows start up, i have added my login application path to registry it is started well...
Suriyan Suresh
1

votes
1

answer
4k

Views

Auto startup and shutdown of VMs in Hyper-V

I want to be able to automate startup and shutdown of a Windows XP VM running under Hyper-V on Windows 2008. The VM should only be available during office hours. Its a standard Windows XP (SP3) installation. So the VM should startup at 8am and shutdown at 6pm (regardless of any running application...
Tom Brown
1

votes
2

answer
1.1k

Views

WPF Startup Screen like Blend

Our main WPF window ('Main Window') takes considerable time to create (it is using a ribbon and docking panel similar to Visual Studio). Just like in Blend the first action will always be to either choose an existing project to work on or to create a new project. Therefore we would like to show this...
Philipp Schmid
1

votes
1

answer
230

Views

Debug startup program behavior

I want to Debug a program called Freecall in my Windows 7 Professional laptop. Now it shows as a Startup item in 'System Configuration' console. I tried to uncheck it in the Startup item and restart, but it keeps on adding itself to HKCU\Software|Microsoft\Windows\CurrentVersion\Run. i think its the...
iceman
1

votes
3

answer
1.9k

Views

Restart a WCF service after a server reboot

Is there some mechanism in WCF that can be used to 'pre-start / warm-up' WCF services that are hosted in IIS ? - something like the warm-up scripts for SharePoint sites I have the situation where servers are re-booted over night and next day there is a long delay while the WCF services spin-up. I ca...
SteveC
1

votes
1

answer
491

Views

Registry Startup Entry with runas argument?

Is it possible to add a startup entry in the windows registry with a runas argument? So when it launches, it runs with the user specified?
Zac Brown
1

votes
1

answer
869

Views

Axapta Error :The Configuration “xxxx” could not be found

When ever i try to launch the application through citrix. i get the error 'The Configuration 'xxxx' could not be found. Use the Navision Axapta Configuration Utility to verify the configuration.Please restart the Axapta Business Connector before Logging on. The Application runs on Axapta and i have...
coolbuddy
1

votes
1

answer
1.8k

Views

How to add a script to boot/startup on Android?

How can I make a script to run on startup or add an executable to the boot of the Android kernel?
mwm
1

votes
1

answer
411

Views

How to disable all the autostarting apps

How I can programmatically find the list of applications that starts on device startup. Is there any way to programmatically disable autostarting applications you don't need. Thanks
Android_IT
1

votes
2

answer
227

Views

Can I lazy-load my libraries so they don't delay my app startup?

My app takes a long period of time during the startup, while the splash screen is shown. I assume that It is so due to the size of what the iOS has to load, including libraries. My question is, can I load those in the moment the user actually wants to use it, so it makes the startup time shorter? Ar...
toupper
1

votes
1

answer
269

Views

Running Application at StartUp

Hi i am running windows 7 64 bit. I made an application that uses sql lite database and to do operation application has application manifist file to require admin. Now issue is that i need to run this application when ever windows starts up it should run after login. now i tried two approaches 1.Wri...
Afnan Bashir
1

votes
2

answer
43

Views

SL asynchronicity at startup… Strategies?

I'm far from new at threading and asynchronous operations, but SL seems more prone to asynchronous issues, particularly ordering of operations, than most frameworks. This is most apparent at startup when you need a few things done (e.g. identity, authorization, cache warming) before others (renderin...
CRAGIN

View additional questions