Re: [DNG] Creating directory in /var/run on bootup

2019-02-05 Thread Steve Litt
On Tue, 5 Feb 2019 10:52:24 +1100 wirelessduck--- via Dng wrote: > I'm running the barman backup software for PostgreSQL and the > documentation says I should configure the lockfile directory to be on > a volatile partition like /var/run/barman. > > Since this software runs every minute via

Re: [DNG] Creating directory in /var/run on bootup

2019-02-05 Thread Harald Arnesen via Dng
Rowland Penny via Dng [05/02/2019 21.59]: >>   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 Or even simpler: mkdir -p /var/run/barman If the directory or any of

Re: [DNG] Creating directory in /var/run on bootup

2019-02-05 Thread Rowland Penny via Dng
On Tue, 5 Feb 2019 21:31:46 +0100 Alessandro Selli wrote: > 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 >

Re: [DNG] Creating directory in /var/run on bootup

2019-02-05 Thread Alessandro Selli
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

Re: [DNG] Creating directory in /var/run on bootup

2019-02-05 Thread Didier Kryn
Le 05/02/2019 à 11:34, k...@aspodata.se a écrit : 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

Re: [DNG] Creating directory in /var/run on bootup

2019-02-05 Thread karl
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 . in the crontab