On Sat, Sep 24, 2011 at 4:24 PM, Alessandro Baggi
<alessandro.ba...@gmail.com> wrote:
> Hi Tomas,
>
> Yes, clamd is already running. Now i'm starting it from rc.local.

Use /etc/rc.conf.local and that new infrastructure rc.d

>
> Reading man pages from www.openbsd.org I get:
>
> The fourth section contains the/pkg_scripts/ B variable, responsible for
> B  B  starting and stoppingrc.d(8)
>
B <http://www.openbsd.org/cgi-bin/man.cgi?query=rc.d&sektion=8&arch=i386&apro
pos=0&manpath=OpenBSD+Current>
> B scripts installed by packages in the speci-
> B  B  fied order. B For example, the following line
>
> B  B  B  B  B  pkg_scripts="dbus_daemon cupsd"
>
> B  B  will run//etc/rc.d/dbus_daemon/ B then//etc/rc.d/cupsd/ B with
the/start/
> B argu-
> B  B  ment at boot time and in reverse order with the/stop/ B argument at
shut-
> B  B  down.
>
>
> but reading man from my installed OpenBSD (4.9/amd64), i get:
>
> The fourth section contains the/rc_scripts/ B variable, responsible for
> B  B  starting and stoppingrc.d(8)
>
B <http://www.openbsd.org/cgi-bin/man.cgi?query=rc.d&sektion=8&arch=i386&apro
pos=0&manpath=OpenBSD+Current>
> B scripts installed by packages in the speci-
> B  B  fied order. B For example, the following line
>
> B  B  B  B  B  rc_scripts="dbus_daemon cupsd"
>
> B  B  will run//etc/rc.d/dbus_daemon/ B then//etc/rc.d/cupsd/ B with
the/start/
> B argu-
> B  B  ment at boot time and in reverse order with the/stop/ B argument at
shut-
> B  B  down.
>
> What's the way?

We don't know what is your version of OpenBSD ;-) Anyway it was
rc_scripts in 4.9 and changed to pkg_scripts in current
http://www.openbsd.org/faq/current.html#20110707

>
>
> On 09/24/2011 04:16 PM, Tomas Bodzar wrote:
>>
>> On Sat, Sep 24, 2011 at 3:59 PM, Alessandro Baggi
>> <alessandro.ba...@gmail.com> B wrote:
>>>
>>> Hi list.
>>>
>>> I'm trying to use rc_script in rc.conf.local but without results.
>>> In rc.conf.local I put this:
>>>
>>> rc_scripts="clamd"
>>>
>>> but after reboot, clamd does not start.
>>> I've tried also:
>>>
>>> rc_scripts="clamd start"
>>>
>>> and
>>>
>>> clamd_flags=""
>>>
>>> but without result.
>>
>> Did you set clamd already? Because you need to config clamd first and
>> uncomment at least one line in config to get that daemon running
>>
>>> Can someone point me in the right direction?
>>
>> man rc.d
>> man rc.subr
>>
>> find env for debug
>>
>>> Thanks in advance.

Reply via email to