[mt-daapd] fix systemd service file

Tom Callaway spot at fedoraproject.org
Tue Sep 13 17:57:02 UTC 2011


commit 6533b7ea2878335f69d7504278b3531cc5d0639b
Author: Tom "spot" Callaway <tcallawa at redhat.com>
Date:   Tue Sep 13 13:56:49 2011 -0400

    fix systemd service file

 mt-daapd.service |    3 +++
 mt-daapd.spec    |    5 ++++-
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/mt-daapd.service b/mt-daapd.service
index c34cb1e..47dec92 100644
--- a/mt-daapd.service
+++ b/mt-daapd.service
@@ -2,8 +2,11 @@
 Description=mt-daapd - multi-threaded DAAP server for iTunes
 ConditionPathExists=/etc/mt-daapd.conf
 Requires=network.target
+Wants=avahi-daemon.service
+After=avahi-daemon.service
 
 [Service]
+Type=forking
 ExecStart=/usr/sbin/mt-daapd
 Restart=always
 
diff --git a/mt-daapd.spec b/mt-daapd.spec
index b010d8e..717b357 100644
--- a/mt-daapd.spec
+++ b/mt-daapd.spec
@@ -11,7 +11,7 @@ Summary: An iTunes-compatible media server
 Name: mt-daapd
 Epoch: 1
 Version: 0.2.4.2
-Release: 10%{?dist}
+Release: 11%{?dist}
 License: GPLv2+
 Group: Applications/Multimedia
 Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
@@ -101,6 +101,9 @@ fi
 %doc AUTHORS COPYING CREDITS NEWS README TODO
 
 %changelog
+* Tue Sep 13 2011 Tom Callaway <spot at fedoraproject.org> - 1:0.2.4.2-11
+- improve systemd service (forking, wants avahi, order after avahi)
+
 * Fri Sep 09 2011 Tom Callaway <spot at fedoraproject.org> - 1:0.2.4.2-10
 - fix systemd scriptlets
 


More information about the scm-commits mailing list