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

2019-02-12 Thread Tom via Dng
> On 6 Feb 2019, at 17:57, Steve Litt wrote: > > Or, you could use this as an opportunity to stick your toes in the > water of runit or s6, by running runit or s6 from /etc/inittab's > special respawn area, and then making a s6 or runit service that makes > the directory, and then does a

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

2019-02-12 Thread Tom via Dng
> On 6 Feb 2019, at 03:03, Didier Kryn wrote: > > The first solution seems the best to me because it concentrates all the > customization in one place, but, for completeness, an alternative to the > second solution is to add the line 'mkdir /var/run/barman' in /etc/rc.local . > >

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

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

2019-02-04 Thread wirelessduck--- via Dng
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 cron instead of having a daemon process, there is no service script in