[Dovecot] Init.d boot scripts??
Hello,
Trying to figure out how to get dovecot to startup at boot. I saw the Ubuntu script on the dovecot site, but that didn't work on my system (SuSe 10.2). Of course, copying the /usr/local/sbin/dovecot file into /etc/init.d doesn't work at all. Any one have working SuSe script??
Rodman
rodman@thefrowerts.com wrote:
Hello,
Trying to figure out how to get dovecot to startup at boot. I saw the Ubuntu script on the dovecot site, but that didn't work on my system (SuSe 10.2). Of course, copying the /usr/local/sbin/dovecot file into /etc/init.d doesn't work at all. Any one have working SuSe script??
I don't have a SuSE script, but I use something like this on Solaris just adjust CFG and BIN to fit your needs
----begin----
#!/bin/sh # # Dovecot Secure IMAP/pop server
## please configure to fit your needs here CFG=/etc/dovecot.conf BIN=/usr/local/sbin/dovecot PROC=dovecot ## configuration ends if [ ! -f $CFG ]; then exit 0; fi
case $1 in
'start') $BIN -c $CFG ;; 'stop') pkill -KILL $PROC ;; 'restart') pkill -KILL $PROC sleep 2 $BIN -c $CFG ;; *) echo "Usage: $0 {start|stop|restart}" ;; esac
----end----
Rodman
dirk
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
rodman@thefrowerts.com schrieb:
Hello,
Trying to figure out how to get dovecot to startup at boot. I saw the Ubuntu script on the dovecot site, but that didn't work on my system (SuSe 10.2). Of course, copying the /usr/local/sbin/dovecot file into /etc/init.d doesn't work at all. Any one have working SuSe script??
Rodman
why not using the suse rpms init included
http://repos.opensuse.org/server:/mail/openSUSE_10.2/
chooese your arch and then download dovecot
example
http://repos.opensuse.org/server:/mail/openSUSE_10.2/x86_64/dovecot-1.0.rc28...
after all a dovecot rpm comes with suse 10.2 included, you can user yast to install it
Mit freundlichen Gruessen Best Regards
Robert Schetterer
https://www.schetterer.org Munich/Bavaria/Germany -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFGEYsdfGH2AvR16oERAsvhAJ9Z07chrCyXt3SMyhhtOJA6sOxWawCeNksp CE3hJEccXyWQvCq11GYdLGQ= =s8NB -----END PGP SIGNATURE-----
rodman@thefrowerts.com schrieb:
Hello,
Trying to figure out how to get dovecot to startup at boot. I saw the Ubuntu script on the dovecot site, but that didn't work on my system (SuSe 10.2). Of course, copying the /usr/local/sbin/dovecot file into /etc/init.d doesn't work at all. Any one have working SuSe script??
Time for being nasty:
People who can't write boot scripts shouldn't be operating mail servers.
Sounds harsh? That's intentional.
SCNR.
participants (4)
-
Dirk Essl
-
Matthias Andree
-
Robert Schetterer
-
rodman@thefrowerts.com