search for: requiresmountsfor

Displaying 6 results from an estimated 6 matches for "requiresmountsfor".

2019 Apr 12
3
Emails redownloading
Hi, recently, we had a problem on one of our mail servers and, after reboot, HDD with emails wasn't mounted into system. Until we fixed it, LOTS of users logged in (Dovecot allowed login and recreated directory structure of mailboxes) and saw empty mailboxes. Now they are redownloading all email, which isn't fun, as it's about 2 TB of data. Anyway, is there a way how to
2019 Apr 12
2
Emails redownloading
...yway, is there a way how to prevent this in the future? Can i set >> Dovecot to disallow logins in such situations? Thanks. > > You didn't tell which OS or init system you are using. > With systemd, you can add use "systemctl edit dovecot" and use: > > [Unit] > RequiresMountsFor=/path/to/your/mounted/mailbox > > This way dovecot will be started when the directory has been mounted. > > IMHO, and with no offence intended, if you can't control your system > initialization, then you should not start daemons automatically, > i.e. you should take the ro...
2017 Jun 13
0
systemd order help?
...tem (ie not manually via the mount command) are systemd mounts. There's a generator that makes mount units from fstab and it is the actual runtime mount unit that gets used. So with things in fstab you can still have a service require something like data.mount ... There's even a directive RequiresMountsFor to ensure that a path is mounted before that unit is started. Finally autofs is made even easier with systemd as all you need to do to declare a mount autofs is x-systemd.automount in the options field and then it'll only be mounted on demand rather than at boot.
2019 Apr 12
0
Emails redownloading
...2 TB of > data. > > Anyway, is there a way how to prevent this in the future? Can i set > Dovecot to disallow logins in such situations? Thanks. You didn't tell which OS or init system you are using. With systemd, you can add use "systemctl edit dovecot" and use: [Unit] RequiresMountsFor=/path/to/your/mounted/mailbox This way dovecot will be started when the directory has been mounted. IMHO, and with no offence intended, if you can't control your system initialization, then you should not start daemons automatically, i.e. you should take the role of systemd. Cheers.
2019 Apr 12
0
Emails redownloading
...event this in the future? Can i set >>> Dovecot to disallow logins in such situations? Thanks. >> >> You didn't tell which OS or init system you are using. >> With systemd, you can add use "systemctl edit dovecot" and use: >> >> [Unit] >> RequiresMountsFor=/path/to/your/mounted/mailbox >> >> This way dovecot will be started when the directory has been mounted. >> >> IMHO, and with no offence intended, if you can't control your system >> initialization, then you should not start daemons automatically, i.e. >&...
2017 Jun 12
5
systemd order help?
I'm looking into 'porting' some custom init.d scripts that are in use on CentOS 6 boxes for use on CentOS 7 using systemd One particular init.d script needs to run after autofs has been started, but before X11 is started I'm guessing I could use something like: After=autofs.service Before=graphical.target Is this correct? However, I would like to use the same systemd