XMailforum is a readonly knowledge archive now.

Registering as a new user or answering posts is not possible anymore.

Might the force be with you, to find here what you are looking for.

2019-09-20 - hschneider, Admin

Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.

XMail Forum -> xqmagent / Linux - Some questions

Reply to this topicStart new topicStart Poll

> xqmagent / Linux - Some questions, Daemon start/stop script, .conf location
NomadCF
Posted: Feb 5 2004, 07:43 AM
Quote Post


Wizard
*********

Group: Members
Posts: 428
Member No.: 434
Joined: 21-January 03



Is there a way to stop xqmagent with out having to kill -9 it's proc # ?

Is there a way to redirect where it looks for the xqmagent.conf file ?


--------------------
-- Chris L. Franklin --
www.NomadCF.com

All my scripts are written for linux servers.
My XMail scripts
PMEmail PosterUsers WebsiteAOL
Top
hschneider
Posted: Feb 5 2004, 07:54 AM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



>Is there a way to stop xqmagent with out having to kill -9 it's proc # ?
Not at the moment. Since the Python runtime environment does not prevent the child process PID, it's hard to implement. But I'm working on it. One of the next updates will fullfill the daemon standards start, stop, restart completely.

>Is there a way to redirect where it looks for the xqmagent.conf file ?
No, but this will also go into one of the next updates. So root access to /etc won't be necessary anymore.



--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
atomant
Posted: Feb 5 2004, 02:19 PM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 1776
Member No.: 427
Joined: 18-January 03



The easy way to stop xqmagent:
#killall xqmagent

Plain and simple. image007.gif


--------------------
Bye,
Sasa



-------------------------------------------------------------------

All electric machines work on smoke...when the smoke escape from machines, they don't work anymore
Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming or what?"
PMEmail PosterUsers WebsiteICQ
Top
hschneider
Posted: Feb 5 2004, 03:15 PM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



Yep -- but it can happen that the port stays occupied ... so the Agent needs to handle the KILL signal, freeying the port before going down.


--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
hschneider
Posted: Feb 5 2004, 06:29 PM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



As an intermediate solution, take this startup script (don't foget to fill in your Agent's location):

CODE

#!/bin/sh
#
# skeleton example file to build /etc/init.d/ scripts.
#  This file should be used to construct scripts for /etc/init.d.
#
#  Written by Miquel van Smoorenburg <miquels@cistron.nl>.
#  Modified by Harald Schneider <h_schneider@marketmix.com>
#
# Version: @(#)skeleton  1.8  03-Mar-1998  miquels@cistron.nl
#

# __Start_of_configuration__
#
# Place the path to your Agent's folder here:
#

AGENT_ROOT=/var/xqmagent

#
# __End_of_configuration__

LD_ASSUME_KERNEL="2.4.1"

PATH=$AGENT_ROOT:/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=$AGENT_ROOT/xqmagent
NAME=xqmagent
DESC="XQM Agent"

test -f $DAEMON || exit 0

set -e
ulimit -c 20000

start_agent()
{
 $DAEMON
}

stop_agent()
{
 killall -KILL $NAME
}

debug_agent()
{
 $DAEMON --debug
}


case "$1" in
 start)
     echo -n "Starting $DESC: "
     start_agent
;;
 stop)
     echo -n "Stopping $DESC: "
     stop_agent
     echo "Stopped!"
;;
 debug)
     echo "Debugging $DESC ... "
     debug_agent
;;
 restart|force-reload)
#
# If the "reload" option is implemented, move the "force-reload"
# option to the "reload" entry above. If not, "force-reload" is
# just the same as "restart".
#
echo -n "Restarting $DESC ... "
stop_agent
sleep 1
start_agent
;;
 *)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload|debug}" >&2
exit 1
;;
esac

exit 0



--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | XMail Queue Manager | Next Newest »

Reply to this topicStart new topicStart Poll