PtokaX as System Service
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

PtokaX as System Service

Started by BoJlk, 10 September, 2005, 00:00:40

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BoJlk

I'm running the Ptokax Hub on a remote Server in my network.
I need to login to start the Hub.
Is there's a way to register the Hub as a System Service and make it start with the system.

I'm guessing that changing any Hub properties will require the Hub to be restarted to register it as service again.
And to make Hub notification as system events.

I've tried "ptokax.exe -service" i guess it's not that easy.

DJ Bert

Place a shortcut of Ptokax.exe in the startup folder!!!

bastya_elvtars

QuoteOriginally posted by DJ Bert
Place a shortcut of Ptokax.exe in the startup folder!!!

That's not so easy, because it still needs logon. Use FireDaemon, and do not forget to allow PtokaX interact with the desktop!
Everything could have been anything else and it would have just as much meaning.

bluebear

QuoteOriginally posted by BoJlk
I'm running the Ptokax Hub on a remote Server in my network.
I need to login to start the Hub.
Is there's a way to register the Hub as a System Service and make it start with the system.

I'm guessing that changing any Hub properties will require the Hub to be restarted to register it as service again.
And to make Hub notification as system events.

I've tried "ptokax.exe -service" i guess it's not that easy.

You can not run ptokax as a windows service. It's not coded to be a service, and it would require a rewrite of the program. Also does a windows service run in its own account/"shell" so loading the gui will not be possible. And ptokax rely on its gui. I don't know the program bastya posted, but you should probably use DJ Berts advice.
Sincerely,
bluebear
--
http://www.thewildplace.dk/ is is closed - Use the following mirrors instead
http://bluebear.psycho-chihuahua.net
http://pxextension.piratez.dk/
[Lua extensions - Chat stats - YnHub PMSpy - DC Source code - and more]

bastya_elvtars

It worked fine here with 0.330 15.18, it should be better with the current version, since it includes minimize on startup.
Everything could have been anything else and it would have just as much meaning.

BoJlk

#5
QuoteOriginally posted by bastya_elvtars
It worked fine here with 0.330 15.18, it should be better with the current version, since it includes minimize on startup.

I could run it as a system Service using the "FireDaemon"?
Thanks "bastya_elvtars"!!!
The only problem is that PtokaX prompts you yes/no prior shutting down.

And about the PtokaX relaying on it's GUI, yes it is but not all the time.
I mean you setup and let it run.
i usually don't touch the GUI while it's working fine.

QuotePlace a shortcut of Ptokax.exe in the startup folder!!!
That will require me to logon as a user to process the startup shortcuts.

PPK

QuoteOriginally posted by BoJlk
And about the PtokaX relaying on it's GUI, yes it is but not all the time.
All time, all settings have in gui and get from gui on run :(
"Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall

BoJlk

#7
fortunately running it with the "FireDaemon" was successful and it's not disabling the GUI altho.
You can change the interaction level using the FireDaemon GUI.
you can run it without GUI to be visible at all or to be "interacted with Desktop" which presents you with possibility to work with the GUI even if it's System Service.  :D  :D

bastya_elvtars

There is a WaitToKillServicetimeout in Windows, I am not sure how you could play with it... but the 'kill' does not allow PtokaX to save changes. So just exit in a proper way if you wanna do so, and get some tweaking app for the above...
Everything could have been anything else and it would have just as much meaning.

BoJlk

Yeah I've noticed for the timeout to kill option is setup for 5000 ms.
It's needed just because of the PX's prompt, is this could be disabled?

Meka][Meka

QuoteOriginally posted by PPK
QuoteOriginally posted by BoJlk
And about the PtokaX relaying on it's GUI, yes it is but not all the time.
All time, all settings have in gui and get from gui on run :(

calling settings from a gui over and over can be time consuming, why not create a settings class, which can be accessed, Sets.Motd, Sets.HubName, etc
Do you know what \'nemesis\' means? A righteous infliction of retribution manifested by an appropriate agent. Personified in this case by an \'orrible cunt... me.



HaArD

That's what I was thinking too....

PPK

QuoteOriginally posted by Meka][Meka
calling settings from a gui over and over can be time consuming, why not create a settings class, which can be accessed, Sets.Motd, Sets.HubName, etc
Yes i have it in TODO :))
"Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall

SMF spam blocked by CleanTalk