From d4124689452c137f2bc16e2aaf8d76333cd63049 Mon Sep 17 00:00:00 2001 From: "tgoff0@gmail.com" Date: Fri, 10 Apr 2015 00:55:15 +0000 Subject: [PATCH] services: Improve the mgen actor service. Fix shutdown and add a validation command. --- trunk/daemon/core/services/nrl.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/trunk/daemon/core/services/nrl.py b/trunk/daemon/core/services/nrl.py index 26175c5b..d346ced4 100644 --- a/trunk/daemon/core/services/nrl.py +++ b/trunk/daemon/core/services/nrl.py @@ -587,8 +587,11 @@ class MgenActor(NrlService): _startindex = 50 # list of startup commands, also may be generated during startup _startup = ("sh start_mgen_actor.sh", ) + # list of validation commands + _validate = ("pidof mgen", ) # list of shutdown commands - _shutdown = ("killall mgen") + _shutdown = ("killall mgen", ) + @classmethod def generateconfig(cls, node, filename, services): ''' Generate a startup script for MgenActor. Because mgenActor does not