NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: About a rc.d script and "--user ${puser}"
I noticed that bug and already tried as below and result is same.
Regards,
#!/bin/sh
#
# $NetBSD: privoxy.sh,v 1.4 2009/02/02 20:00:40 jnemeth Exp $
#
# PROVIDE: privoxy
# REQUIRE: DAEMON
. /etc/rc.subr
name="privoxy"
rcvar=$name
command="/usr/pkg/sbin/${name}"
pidfile="/var/run/${name}.pid"
pconfig="/usr/pkg/etc/privoxy/config"
puser="privoxy"
pgroup="privoxy" <--------------------------------------------- I
corrected already
required_files="$pconfig"
command_args="--pidfile ${pidfile} --user ${puser}.${pgroup} ${pconfig}
2>/dev/null"
load_rc_config $name
run_rc_command "$1"
Matthias Drochner, 02/03/09 12:40:
cemkayali%eticaret.com.tr@localhost said:
I have used the patch
There was a little bug in my patch (missing "&") - I'll
append a new one. The bug shouldn't have an effect unless
you pass a group explicitely on "privocy" invocation.
(There is little point to do so because "privoxy" will
pick up the primary group of the user specified which
is what we want.)
best regards
Matthias
-------------------------------------------------------------------
-------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr. Harald Bolt,
Dr. Sebastian M. Schmidt
-------------------------------------------------------------------
-------------------------------------------------------------------
Home |
Main Index |
Thread Index |
Old Index