:: Re: [DNG] Creating directory in /va…
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: karl
Ημερομηνία:  
Προς: dng
Αντικείμενο: Re: [DNG] Creating directory in /var/run on bootup
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>

. in the crontab have a boot entry:

@reboot <script like above to setup /var/run/barman>

. 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

Regards,
/Karl Hammar

-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden