On Tue, 5 Feb 2019 21:31:46 +0100 Alessandro Selli <[email protected]> wrote:
> On 05/02/19 at 11:34, [email protected] 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 > even better: [[ -d /var/run/barman ]] || mkdir -p /var/run/barman Rowland _______________________________________________ Dng mailing list [email protected] https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
