[MacPorts] #22872: aiccu - daemondo automatically restarts it, the reason why it exists is because something is broken.....
MacPorts
noreply at macports.org
Thu Jan 3 03:43:57 PST 2013
#22872: aiccu - daemondo automatically restarts it, the reason why it exists is
because something is broken.....
-----------------------+-------------------
Reporter: jeroen@… | Owner: cr@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.1
Resolution: | Keywords:
Port: aiccu |
-----------------------+-------------------
Comment (by jinn.koriech@…):
Please merge the following solution to resolve this bug.
Currently the plist definition configures daemondo to launch in mode 2,
causing aiccu to be restarted indefinitely.
{{{
$ /opt/local/bin/daemondo --help
...
daemondo runs in one of two modes: (1) If no stop-cmd is given, daemondo
executes start-cmd asyncronously, and tracks the process id; that process
id
is used to signal the daemon for later stop and/or restart. (2) If stop-
cmd
is given, then both start-cmd and stop-cmd are issued syncronously, and
are
assumed to do all the work of controlling the daemon. In such cases there
is
no process id to track. In either mode, restart-cmd, if present, is used
to
restart the daemon. If in mode 1, restart-cmd must not disrupt the process
id.
If restart-cmd is not provided, the daemon is restarted via a stop/start
sequence.
...
In mode 1 only, daemondo will exit when it detects that the daemon being
monitored has exited.
}}}
Therefore by removing the --stop-cmd and --restart-cmd we can ensure
daemondo will only start the aiccu daemon once, however if a netchange
event is detected daemondo ''should'' correctly restart aiccu.
{{{
$ pwd
/opt/local/etc/LaunchDaemons/org.macports.aiccu
$ diff org.macports.aiccu.plist.orig org.macports.aiccu.plist
15,22d14
< <string>--stop-cmd</string>
<
<string>/opt/local/etc/LaunchDaemons/org.macports.aiccu/aiccu.wrapper</string>
< <string>stop</string>
< <string>;</string>
< <string>--restart-cmd</string>
<
<string>/opt/local/etc/LaunchDaemons/org.macports.aiccu/aiccu.wrapper</string>
< <string>restart</string>
< <string>;</string>
}}}
Above diff is against aiccu @20070115.
{{{
$ sudo port info aiccu
aiccu @20070115, Revision 2 (net, ipv6)
Variants: gnutls
Description: AICCU makes it very easy for SixXS users to get IPv6
connectivity everywhere they
want. It uses the TIC (Tunnel Information & Control)
protocol to request the
information needed to setup a tunnel through which
the connectivity is created. It
supports 6in4 static (RFC 2893), 6in4 heartbeat (RFC
2893 +
draft-massar-v6ops-heartbeat) and AYIYA (draft-
massar-v6ops-ayiya) tunnel
protocols.
Homepage: http://www.sixxs.net/tools/aiccu/
Library Dependencies: tuntaposx
Platforms: darwin
License: unknown
Maintainers: cr at 23bit.net
}}}
--
Ticket URL: <https://trac.macports.org/ticket/22872#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list