miredo

Chris Turner c.turner at 199technologies.org
Sun Feb 6 13:17:11 PST 2011


Pierre Abbat wrote:
I installed the miredo package but there's no startup script. The example 
client-hook is not a startup script; it apparently goes 
in /usr/pkg/etc/miredo.

Pierre
Unfortunately not all the daemon providing packages provide
rc.d scripts - based on the PLIST (packing list) for this package,
it looks like this is the case here -
The easiest way to run at boot would be to put in /etc/rc.local,
but, Based on the manual page it looks like this is a
pretty 'standard' daemon, with a -c conffile and a /var/run pidfile -
so it shouldn't be too bad to tweak an existing rc.d script -
I'd probably try copying from ssh or inetd or maybe syslogd -
alot of the main stuff is setup by the rc.subr - basically,
set the command name and it should start -
I kind of hacked up the sshd one as attached - maybe it will work?

The links from the earlier thread about 'rcrun' also apply

If you do get one working - please do submit a pkgsrc bug at
the netbsd bugtracker so it will be included in future releases
of that package



#!/bin/sh
#
# $NetBSD: sshd,v 1.18 2002/04/29 08:23:34 lukem Exp $
# $FreeBSD: src/etc/rc.d/sshd,v 1.3 2003/07/13 01:49:07 mtm Exp $
# $DragonFly: src/etc/rc.d/sshd,v 1.3 2005/11/19 21:47:32 swildner Exp $
#

# PROVIDE: miredo
# REQUIRE: NETWORKING

.  /etc/rc.subr

name="miredo"
rcvar=`set_rcvar`
pidfile="/var/run/${name}.pid"

load_rc_config $name
run_rc_command "$1"





More information about the Users mailing list