On 05/02/19 at 11:34, k...@aspodata.se wrote: > Tom: > ... >> What is the recommended alternative way to create a sub-directory of >> /var/run on bootup for non-daemon software? > Don't know about "recommended", but you can > > . prepend your cron script like (or have a wrapper): > > if [ ! -d / ]; then mkdir -p /var/run/barman; fi > <rest of cron script>
I think you meant to write: if [ ! -d /var/run/barman ]; then mkdir -p /var/run/barman; fi [...] > . check which init.d script which sets up /var/run and which starts > cron, and add a script that starts somewhere between thoose two that > sets up /var/run/barman I would prefer such a solution, as it would take away the check for the presence of /var/run/barman every darn minute. /etc/rc.local would be a place I'd think to put the directory creation, too, as it's unlikely that a minute passes between cron startup and it's execution. But putting an ad hoc script is the best thing. -- Alessandro Selli <alessandrose...@linux.com> VOIP SIP: dhatarat...@ekiga.net Chiave firma e cifratura PGP/GPG signing and encoding key: BA651E4050DDFC31E17384BABCE7BD1A1B0DF2AE
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng