Skip to main content
I am trying to start a userver from a command line. 

userver.asn entry
MAINTS	= "userver.exe" /su /dir="<folder>"  /asn=<asn> /maxidle=20s MAINT_TASKS.aps​
MAINT_TASKS.aps apstart trigger (APS shell type APU)
	lfiledump/text $datim,"last_maint.txt"

	activate/stateless "sys_maint_tasks".op_send_data()​

Command Line

userver /ust=MAINTS /dnp="localhost+13303||"

This seems to start a userver of the correct UST, and pickup the timeout value (20s), but I don't see the text file, nor any evidence of the maint_tasks being run. It seems like this should be possible from the documentation, does it not run the apstart trigger when started 'manually'? 
Regards. 
Iain

------------------------------
Iain Sharp
Head of Technical Services
Pci Systems Ltd
Sheffield GB
------------------------------
I am trying to start a userver from a command line. 

userver.asn entry
MAINTS	= "userver.exe" /su /dir="<folder>"  /asn=<asn> /maxidle=20s MAINT_TASKS.aps​
MAINT_TASKS.aps apstart trigger (APS shell type APU)
	lfiledump/text $datim,"last_maint.txt"

	activate/stateless "sys_maint_tasks".op_send_data()​

Command Line

userver /ust=MAINTS /dnp="localhost+13303||"

This seems to start a userver of the correct UST, and pickup the timeout value (20s), but I don't see the text file, nor any evidence of the maint_tasks being run. It seems like this should be possible from the documentation, does it not run the apstart trigger when started 'manually'? 
Regards. 
Iain

------------------------------
Iain Sharp
Head of Technical Services
Pci Systems Ltd
Sheffield GB
------------------------------
I guess you are missing some command line options here. The userver process will register itself with the urouter using the UST MAINTS and inherit the timeout, but for start-up it needs to know things like the working dir, asn file, and start-up shell name. E.g.

userver /dir="<folder>"  /asn=<asn> /ust=MAINTS /dnp="localhost+13303||"​ MAINT_TASKS.aps​

I hope this helps.

Regards,
Daniel

------------------------------
Daniel Iseli
Principal Technical Support Engineer
Uniface Services
Rocket Software, Switzerland
------------------------------