/etc/rc.d/this_one_runs_last

Is there a nice way to make rc(8) service script to run last ? I had a look in rcorder(8) etc but did not see a proper bullet proof way.

This is just idle academic, not really important, if in real need one can always patch /etc/rc (and repatch after upgrades), no big deal.

Juha
 
Seems that rcorder(8) emits a warning but continues ok, if one uses nonexistent REQUIREs. Excellent. A new checkpoint could be created, if ever needed, that requires a selection of the usual suspects even if they are not all installed.
Code:
# PROVIDE: ALMOSTTHERE
# REQUIRE: LOGIN cron dbus natd sshd mail bluetooth xdm gdm kdm

Would be nice to have a xdm? mechanism, but that's cosmetics.

Juha
 
if in real need one can always patch /etc/rc (and repatch after upgrades), no big deal.
/etc/rc.local is probably better suited for this. If I remember correctly it's run at the very last. And it won't be overwritten with an update.
 
It's not last, I was also surprised to notice that. I don't mean that it should be, or that there is any real value in being the very last. Just idle curiosity.

Juha
 
Back
Top