How to unload DOTS - xpages

Domino OSGi Tasklet Service will be important in the future to develop Java based tasklets to run on the Domino servers.
When I read the documentation from OpenNTF I see a command to load the DOTS framework by 'load dots'.
Everything runs fine, also my own tasklets.
But is there also a command to unload or stop the DOTS framework??

Common syntax to quit a task is to issue "tell [task] quit" command, so "tell dots quit" should work.

Related

Desktop App Creator freezes and won't work

I'm trying convert .exe into .appx.
I'm using Desktop App Creator, a tool offered by Microsoft.
I've followed their documentation with no problem so far, and when I execute the command to perform the conversion (in verbose mode) the program freezes at the same point every time I launch it (with no errors/exceptions/warnings before the freeze).
In the block of the verbose "Running Installer in Isolated Environment", the last verbose line shown is "Waiting for installer process to complete inside Isolated Environment".
I've left it for 2h waiting but nothing happens.
Also, the only way to stop the shell is to close the window, it seems to be unresponsive for Ctrl+C.
I would appreciate any help for this, there's nothing to be found in the program's documentation about this.
Thanks a lot in advance and regards.
I had the same problem. The solution is that you need to run your installer in the isolated environment in silent mode in order to not display the wizard menu, because you cannot see the isolated environment and click the on the wizard buttons.
Add to DesktopAppConverter -Installer this argument:
-InstallerArguments /SILENT
Before running make sure you can install your application in silent mode by running:
setup.exe /SILENT
I had the same problem a few days ago
replacing "/S" argument with "/quiet" in -InstallerArguments, for me worked!

Send UI to bakcground and get back UI of an application in linux

I'm running linux VM, OS is rhel 6.5, I'll get access the machine via Putty(SSH) only and I'll use export display option to run gui app's.
I've java application and have jar's, to run that application I'll use the below command in putty.
java -Dcms.console.available=false -Dcms.user="username" -Dcms.password="password" -jar LAUNCHER.jar
When I launch the application in command prompt, I'll get UI(If I want run this app as background process I'm using '&' at the end of the command, in this case also I'll get UI), after getting UI I'll select some options in UI then UI will load full components.
Requirement:
I want to send UI in background and I should get UI back(foreground the UI) when ever I want,
Is there any way to achieve this?
I've tried nohup & screen but it didn't worked, and googled no hlep found. Please help me in this.
fg and bg do just this:
The POSIX standard specifies two commands for resuming suspended jobs
in the background and foreground, respectively bg and fg. These were
modeled after the Korn shell job control commands
https://en.wikipedia.org/wiki/Job_control_(Unix)#Commands

How to run something just before the files are installed?

I would like to know how to run something just before files are installed using NSIS.
I know about the .onInit function. That function runs when the installer is first starting. That is not what I want. I would like to run something after the user has clicked the install button but before the files actually get installed.
To be more specific. I have a windows service. When the installer is upgrading the windows service, I need it to stop the service - but only once the user is committed to the install - not when first starting the installer. Then it can upgrade the files and finally (re)start the service again. This seems like it should be a common requirement, but I haven't been able to find anything.
If it matters I'm using the MUI instead of classic.
All sections are executed on the instfiles page and they are executed in the same order as your source .nsi so you can just add another (hidden) section:
Section
# Do service stuff...
SectionEnd
Section "Required Files"
File xyz.abc
SectionEnd
Section
# Do service stuff...
SectionEnd
As Anders said - create invisible (hidden) section which is very first of all sections in your script and stop the service there.
When the other sections will be executed the service will be stopped.
Tip: maybe you should wait few seconds to let service manager time to stop the service.

InnoSetup: Find out reason for restart

I have an Inno Setup script that installs my application and its accompanying files.
On some systems a restart is required, on some not.
I would like to find out the reason for the required restart.
How would I do this most intelligently?
Thank you very much.
For debugging purposes you can peek inside
HKLM\System\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations
to see if there are any moves/renames/deletes queued for the next reboot.
(Sysinternals utility viewer)
Use /LOG when you run the install and then look at the log file that it generates (by default in %TEMP%). It should fairly clearly show in there which files were queued for replacement on restart, or which other reasons caused a restart request to be issued.
Usually restarts are triggered by overuse of restartreplace without using something like AppMutex to ensure that the application has been shut down properly before installing, or from subinstalls executed during [Run].

I can't kill MyApp.vshost.exe

I've managed to get myself in a state where I've no instances of devenv running, but still a MyApp.vshost.exe in the background (no visible windows or consoles).
I've tried TaskManager, ProcessExplorer and command line (taskkill /F /IM MyApp.vshost.exe), none of them complain, the command line even says 'PID 5824 stopped', but it's still there.
I know I can reboot, but I'd rather get to the bottom of this.
It doesn't look like it's this issue (http://support.microsoft.com/kb/982551), because I can reboot no problem (just have in fact, so won't be able to provide any further diagnostics, sorry).
EDIT
This is how I got into this pickle:
I was able to kill my persistent vshost process by following these steps (VS2010):
open the properties of my executable project
in the "Debug" tab, uncheck "Enable the Visual Studio hosting process"
save the project file
That was it, the process stopped, and there was no need to restart Visual Studio.
It seems to be the normal behaviour for this task. When you kill it the task is restarted.
So i advice you to close Visual Studio, that closes the *.vshost.exe task.
I had the same problem while working on a project with .NET 2.0 as target framework.
Temporary changing the target framework to .NET 4.0 client did the job for me.
However, Iam unsure how this is (is it?) related to the file lock issue.
Maybe that's the same problem as described in https://stackoverflow.com/a/1582747/254041 (pending I/O processes):
The MSDN API ref says "TerminateProcess initiates termination and returns immediately. This stops execution of all threads within the process and requests cancellation of all pending I/O. The terminated process cannot exit until all pending I/O has been completed or canceled.". Which means so much as: your I/O can block this process (though I wonder how it can bring your process to 100%, I/O usually doesn't do that).

Resources