|
From: | admin-at-extremeshok-dot-com |
Subject: | Re: one start script, multiple pids |
Date: | Wed, 05 Mar 2014 02:13:43 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
EEEk, what a horrendous maillist manager. looking at the file: https://sourcesup.renater.fr/scm/viewvc.php/branches/sympa-6.1-branch/src/etc/script/sympa.in?root=sympa It would be better to create 2 scripts which can accept a module name variable.. based on the init.d/symba symba_start, containing the function sympa_module_start() symba_stop, containing the function sympa_module_stop() And then use the following: /etc/monit/scripts/sympa_start sympa /etc/monit/scripts/sympa_start bulk /etc/monit/scripts/sympa_start archived /etc/monit/scripts/sympa_start bounced /etc/monit/scripts/sympa_start task_manager /etc/monit/scripts/sympa_stop bounced /etc/monit/scripts/sympa_stop archived /etc/monit/scripts/sympa_stop bulk /etc/monit/scripts/sympa_stop sympa /etc/monit/scripts/sympa_stop task_manager This way you arn't nuking all the working services, when one fails. I have some something similar for an equally horrendous script... On 3/5/2014 1:45 AM, Michael Johnson -
MJ wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |