Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Managing services that reside in the processes stack after there host

Featured Replies

In an effort to make things a little less bolted and more efficient, I have set a fair amount of services that belong to applications that do not start with windows to run in maul mode, so that they are not just take resources when they are not needed. The problem i am having is that after i close the respective host application(s) when i am done with it, the corresponding services do not close out as well. Instead they just linger in the processes pool. My goal is to find a way to tell a given service to terminate after its parent application closes without me manually having to terminating the process in the task manager.

Edit: to fix title.

Edited by Commander X800

Not automatically.

The easy solution is to make a quick script that:

  1. starts the required service(s)
  2. starts the application (and waits in the background, hidden)
  3. when the app terminates, it stops the services again

A simple vbscript (or jscript or whatever) could easily do this for you in a few lines (about a dozen or so). Have a peek at the Win32_Service WMI class (specifically the StartService and StopService methods), and the Run method of the Wscript.Shell object.

Edited by CoffeeFiend

  • Author
Not automatically.

The easy solution is to make a quick script that:

  1. starts the required service(s)
  2. starts the application (and waits in the background, hidden)
  3. when the app terminates, it stops the services again

A simple vbscript (or jscript or whatever) could easily do this for you in a few lines (about a dozen or so). Have a peek at the Win32_Service WMI class (specifically the StartService and StopService methods), and the Run method of the Wscript.Shell object.

So i could make this in Visual Studio 2008 then?

So i could make this in Visual Studio 2008 then?

Sure, you could do it in C# if you wanted, but that's quite overkill, and not so flexible: you'd have to recompile every time you make some small changes... Or you could avoid that at the expense of having to use a XML config file (i.e. app.config) which again seems a little over the top for something so simple. Plain old notepad is more than sufficient for this.

Edited by CoffeeFiend

But where's the adventure of writing an entire app just to stop and start services? :P

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.