Created attachment 673132 [details]
Proposed unit file for systemd using instances
Description of problem:
Systemd file should use instances to properly allow for multiple instances of the application without having to change the systemd unit file.
I have attached a proposed minor modification to the systemd file that allows for multiple instances by creating symlinks (much like getty instances). Feedback is welcome, as I am no expert in writing systemd unit files. I read Lennart's posts on 0pointer.de, but that really was the only valuable documentation on the topic I could find.
This file should probably (?) be placed in /lib/systemd/system/. The administrator would then create soft links in order to run multiple instances.
For example, to run instances of ez-ipupdate for two separate domains, such as example.com and demonstration.ca, the following should work:
ln -sf /lib/systemd/system/ez-ipupdate@.service /etc/systemd/system/multi-user.target.wants/example.com.service
ln -sf /lib/systemd/system/ez-ipupdate@.service /etc/systemd/system/multi-user.target.wants/demonstration.ca.service
systemctl enable example.com.service
systemctl enable demonstration.ca.service
systemctl start example.com.service
systemctl start demonstration.ca.service
I thought I was adding a reference to bug #767801, but it didn't seem to work as far as I can tell. This is a modification to that (now closed) bug.
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.
(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)
More information and reason for this action is here:
ez-ipupdate-3.0.11-0.29.b8.fc20 has been submitted as an update for Fedora 20.
ez-ipupdate-3.0.11-0.29.b8.fc19 has been submitted as an update for Fedora 19.
ez-ipupdate-3.0.11-0.29.b8.fc18 has been submitted as an update for Fedora 18.
With the updates package, I believe it should be enough to just type:
systemctl enable email@example.com
systemctl start firstname.lastname@example.org
This update would break installations which uses default.conf, since now they'd have to enable and start email@example.com, except that they were already broken to begin with due to bug #833595.
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ez-ipupdate-3.0.11-0.29.b8.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
ez-ipupdate-3.0.11-0.29.b8.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
ez-ipupdate-3.0.11-0.29.b8.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.
ez-ipupdate-3.0.11-0.29.b8.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.