Description of problem: transmission-daemon has a sys v init script. We need to include a systemd service(unit) as well. Several packages in Rawhide have been converted already. Use those as examples and refer to https://fedoraproject.org/wiki/TomCallaway/Systemd_Revised_Draft Since systemd service file would be consistent across all systemd users including Fedora (and in the future openSUSE et all), this should be filed upstream as well so that other distros can benefit from the conversion we have done.
Created attachment 522516 [details] 0001-add-systemd-file-659919.patch unit file + specfile patch. Although unit file should be proposed upstream, I think they would be happier to take patch with some additional systemd integration - sd_notify() in daemon.c and unit with Type=notify.
Created attachment 522517 [details] 0002-drop-sysconfig-file.patch Remove sysconfig file.
After apply first patch [0001-add-systemd-file-659919.patch] it remove "%" from release section and due to that rpmbuild show error (error: line 3: Illegal char '?' in: Release:2{?dist}). Other then this issue everything seems fine, built for rawhide successfully through koji. rawhide: http://koji.fedoraproject.org/koji/taskinfo?taskID=3371043
transmission-2.33-2.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/transmission-2.33-2.fc16
Package transmission-2.33-2.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing transmission-2.33-2.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/transmission-2.33-2.fc16 then log in and leave karma (feedback).
I see a regression in the patch (or rather lost of functionality): the user is set to transmission and no other customizations of process arguments are possible. There was an option to set TRANSMISSION_HOME, DAEMON_USER and DAEMON_ARGS variables in the sysconfig file. Now it's gone and I see no replacement available.
The system shipped unit file is placed in /lib/... If you create your own unit in /etc (that is /etc/systemd/system/transmission-daemon.service), then unit from /etc will override the one from /lib. If you want to customize, you have to either: - copy unit from /lib to /etc and make changes - create unit in /etc and put inside ".include /lib/systemd/system/transmission-daemon.service" and the lines you want changed (like User=, ExecStart=). That's how local-admin customization works in systemd and it is not Transmission specific.
transmission-2.33-2.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.