hello ,
Is there any option to set up a depending service , that mast be runing before another is started ?
my setup is little specific here , I have radiusd with postgresql backend starting on wrt160nl , postgres has START=50 option radius get from me a 94 , still in some cases postgres did not finish full start to accept radiusd connection (little explanation here : postgres start by executing postmaster command ,after that exit with ok status , create a pid file (that making my idea of pid file check before radiusd start unusable) then it take some time to start postgres server. Here is full process list of full state (
/mnt/sda2/usr/bin/postmaster -D /data
postgres: writer process
postgres: wal writer process
postgres: autovacuum launcher process
postgres: stats collector process )
)
so I put "sleep 7" before radius execution in his init script , but its very dirty ...and not reliable
is here any ability of openwrt init script , or any other option to start radiusd only if postgres running ?