Re: [systemd-devel] How to mount NFS prior to start postgresql from this volume

2016-07-02 Thread Michael Biebl
2016-07-02 2:44 GMT+02:00 Lennart Poettering : > On Fri, 01.07.16 14:44, wolfgang.wag...@riwa-gis.de > (wolfgang.wag...@riwa-gis.de) wrote: > >> My postgresql.service is this: (unmodified file) >> [Unit] >> Description=PostgreSQL RDBMS >> >> [Service] >> Type=oneshot >>

Re: [systemd-devel] How to mount NFS prior to start postgresql from this volume

2016-07-01 Thread Lennart Poettering
On Fri, 01.07.16 17:59, Simon McVittie (simon.mcvit...@collabora.co.uk) wrote: > This is fixed in testing (stretch); a backport of the version from > stretch, or introducing native systemd services locally, would probably > help. See for

Re: [systemd-devel] How to mount NFS prior to start postgresql from this volume

2016-07-01 Thread Lennart Poettering
On Fri, 01.07.16 14:44, wolfgang.wag...@riwa-gis.de (wolfgang.wag...@riwa-gis.de) wrote: > My postgresql.service is this: (unmodified file) > [Unit] > Description=PostgreSQL RDBMS > > [Service] > Type=oneshot > ExecStart=/bin/true > ExecReload=/bin/true > RemainAfterExit=on > > [Install] >

Re: [systemd-devel] How to mount NFS prior to start postgresql from this volume

2016-07-01 Thread Simon McVittie
On 01/07/16 15:44, wolfgang.wag...@riwa-gis.de wrote: > Maybe it is caused by this (ssome lines before in journalctl-log): I don't know whether it's causal, but dependency loops are never good news. > Jul 01 16:09:57 postgis1 systemd[1]: Cannot add dependency job for unit >

Re: [systemd-devel] How to mount NFS prior to start postgresql from this volume

2016-07-01 Thread Reindl Harald
please strip your quotes Am 01.07.2016 um 17:44 schrieb killermoehre: just drop a --- [Unit] ReuqiresMountsFor=/mnt/daten/postgis/9.4/main --- into »/etc/systemd/system/postgresql@9.4-main.service.d/wait-for-mountpoint.conf« (create directory and file if necessary) end everything should be

Re: [systemd-devel] How to mount NFS prior to start postgresql from this volume

2016-07-01 Thread killermoehre
Am 01.07.2016 um 17:29 schrieb killermoehre: > Am 01.07.2016 um 16:44 schrieb wolfgang.wag...@riwa-gis.de: >> Hello list, >> >> >> >> after days of reading man-pages and searching the web i have no solution >> to my problem, and I am lost in the documentation. >> >> My system is Debian Jessie

Re: [systemd-devel] How to mount NFS prior to start postgresql from this volume

2016-07-01 Thread killermoehre
Am 01.07.2016 um 16:44 schrieb wolfgang.wag...@riwa-gis.de: > Hello list, > > > > after days of reading man-pages and searching the web i have no solution > to my problem, and I am lost in the documentation. > > My system is Debian Jessie 8.5, upgraded from wheezy 7.11. With Debian > wheezy

Re: [systemd-devel] How to mount NFS prior to start postgresql from this volume

2016-07-01 Thread Reindl Harald
Am 01.07.2016 um 16:44 schrieb wolfgang.wag...@riwa-gis.de: Modifications in section [Unit] like : ConditionPathExists=/mnt/daten/postgis Requires=mnt-daten-postgis.mount Before=mnt-daten-postgis.mount nonsense - you explicitly state that it should be startet *before* the mountpoint - when