Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Aug 2016 16:06:51 +0300
From:      "Zeus Panchenko" <zeus@ibs.dn.ua>
To:        <freebsd-rc@freebsd.org>
Subject:   how to start sshd just after network initialization? ...
Message-ID:  <20160822160651.88181@relay.ibs.dn.ua>

next in thread | raw e-mail | index | archive | help
hi,

what is the best way to guarantee scripts starting order?

I need sshd start first and squid start last among all scripts which are starting

is the only way to put (for example) to /usr/local/etc/rc.d/ script/s
to order it?

so, to just start squid after sshd I need something like this:

---[ /usr/local/etc/rc.d/ORDER1 start ]---

#!/bin/sh
#

# PROVIDE: precedence
# REQUIRE: sshd
# BEFORE: squid

---[ /usr/local/etc/rc.d/ORDER1 stop  ]---


but how to configure it globally to start sshd just after network initialization?
is it something like this?

---[ /usr/local/etc/rc.d/ORDER0 start ]---

#!/bin/sh
#

# PROVIDE: precedence
# REQUIRE: NETWORKING pf pflog
# BEFORE: sshd

---[ /usr/local/etc/rc.d/ORDER0 stop  ]---

is there some other way to order them?
-- 
Zeus V. Panchenko				jid:zeus@im.ibs.dn.ua
IT Dpt., I.B.S. LLC					  GMT+2 (EET)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160822160651.88181>