В Wed, 13 Aug 2014 18:00:19 +0200
Per Jessen
I am slowly beginning to migrate a system with multiple postfix instances to 13.1 and therefore also systemd. What is the best way of running multiple instances of postfix with systemd? Basically every "postfix start|stop|reload|whatever" needs a '-c' argument indicating the instance, for example:
postfix -c number4 start
The service.unit is the same, except for the <instance> argument. Can I somehow pass the <instance> as an argument or do I need just create separate service units?
One possibility is to use templates. postfix@.service as template and then simply ln -s postfix@.service postfix@<whatever>.service Inside unit definition you refer to part after @ as %i or %I (should be the same in your case). See man systemd.unit. So start command will become postfix -c %I start -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org