[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFS: source NMU for jmon (approved by maintainer)



I've just installed this locally, it also handles >4GB memory. This will
also close #203793.

Attached to this are a few simple patches.

default closes #226050, allowing a /etc/default/jmon to set PORT
restart closes #238749, allowing jmond to restart if it is killed
man     fixes a problem with jmond man page (wrong port switch)

On Tue 11/30/04 22:28, Mark Hymers wrote:
> Hi,
> 
> The current version of jmon in the archive doesn't work on 2.6 kernels.
> I've prepared an NMU and the maintainer said to find a sponsor for it in
> an email to me (which I can provide to a prospective sponsor).
> 
> The .diff.gz for the NMU is available at:
> http://dynam.mhy.org.uk/~mark/jmon-NMU/jmon_0.3.1-6.1.diff.gz
> 
> and an interdiff from the previous version (0.3.6) is available here:
> http://dynam.mhy.org.uk/~mark/jmon-NMU/jmon_interdiff_0.3.6_to_0.3.6-1.diff.gz
> 
> The package is lintian and linda clean and the changes are minimal to
> get it working on 2.6 whilst maintaining 2.4 compatibility.
> 
> Thanks,
> 
> Mark
> 
> -- 
> Mark Hymers, University of Newcastle Medical School
> Intercalating Medical Student (MBBS / PhD)



-- 

------------------------------------------------------
| Josh Lauricha            | Ford, you're turning    |
| laurichj@bioinfo.ucr.edu | into a penguin. Stop    |
| Bioinformatics, UCR      | it                      |
|----------------------------------------------------|
| OpenPG:                                            |
|  4E7D 0FC0 DB6C E91D 4D7B C7F3 9BE9 8740 E4DC 6184 |
|----------------------------------------------------|
1c1
< #!/bin/sh
---
> #! /bin/sh
3,7c3,4
< # chkconfig: 345 77 77
< # description: jmond is the daemon part of the jmon suite. jMon can be used \
< # for remote resource monitoring on large networks.
< # PID file: /var/run/jmond.pid
< # Lock file: /var/lock/subsys/jmond
---
> # skeleton	example file to build /etc/init.d/ scripts.
> #		This file should be used to construct scripts for /etc/init.d.
8a6,20
> #		Written by Miquel van Smoorenburg <miquels@cistron.nl>.
> #		Modified for Debian GNU/Linux
> #		by Ian Murdock <imurdock@gnu.ai.mit.edu>.
> #
> # Version:	@(#)skeleton  1.8  03-Mar-1998  miquels@cistron.nl
> #
> # This file was automatically customized by dh-make on Fri, 10 Sep 1999.
> 
> PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
> DAEMON=/usr/sbin/jmond
> NAME=jmond
> DESC="jMON resource monitor"
> 
> test -f $DAEMON || exit 0
> test -f /etc/jmonrc || exit 0
10,11c22,24
< # Source function library.
< . /etc/rc.d/init.d/functions
---
> PORT=7777
> 
> [ -f /etc/default/jmon ] && source /etc/default/jmon
13d25
< # See how we were called.
16,19c28,31
< 	echo -n "Starting jmond: "
< 	daemon /usr/sbin/jmond
<     echo
< 	touch /var/lock/subsys/jmond
---
> 	echo -n "Starting $DESC: "
> 	start-stop-daemon --start --quiet --pidfile \
>             /var/run/$NAME.pid --exec $DAEMON -- -p $PORT
> 	echo "$NAME."
22,31c34,38
< 	echo -n "Stopping jmond: "
< 	[ -f /var/run/jmond.pid ] || exit 0
< 	kill -TERM `cat /var/run/jmond.pid`
< 	rm -f /var/run/jmond.pid
< 	rm -f /var/lock/subsys/jmond
< 	echo "jmond"
< 	;;
<   restart)
< 	$0 stop
< 	$0 start
---
> 	echo -n "Stopping $DESC: "
> 	start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
> 		--exec $DAEMON
>         rm -f /var/run/$NAME.pid
> 	echo "$NAME."
33,34c40,47
<   status)
< 	status jmond
---
>   restart|force-reload)
> 	echo -n "Restarting $DESC: "
> 	start-stop-daemon --stop --quiet --pidfile \
> 		/var/run/$NAME.pid --exec $DAEMON
> 	sleep 1
> 	start-stop-daemon --start --quiet --pidfile \
> 		/var/run/$NAME.pid --exec $DAEMON -- -p $PORT
> 	echo "$NAME."
37c50
< 	echo "Usage: jmond {start|stop|restart|status}"
---
> 	echo "Usage: $0 {start|stop|restart|force-reload}" >&2
38a52
> 	;;
42d55
< 
17c17
< .BI \-f \ port\fP
---
> .BI \-p \ port\fP
155a156
> 	int                 yes = 1;
169a171,174
> 	if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes)) == -1) {
> 		log_err("SocketOpt: %s", sys_errlist[errno]);
> 		exit(1);
> 	}

Reply to: