how to start sshd just after network initialization? ...

Zeus Panchenko zeus at ibs.dn.ua
Mon Aug 22 13:11:22 UTC 2016


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 at im.ibs.dn.ua
IT Dpt., I.B.S. LLC					  GMT+2 (EET)


More information about the freebsd-rc mailing list