client/tools/osad/osa-dispatcher.service | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 1dbfaffc0e4a26785d4e2e75c93ff40c875c0fbb
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Tue Sep 18 14:46:56 2012 +0200
Remove osa-dispatcher.pid in StartPre as confined daemon is unable to.
Addressing
avc: denied { unlink } for pid=7677 comm="osa-dispatcher"
name="osa-dispatcher.pid" dev="tmpfs" ino=3016187
scontext=system_u:system_r:osa_dispatcher_t:s0
tcontext=system_u:object_r:osa_dispatcher_var_run_t:s0 tclass=file
diff --git a/client/tools/osad/osa-dispatcher.service
b/client/tools/osad/osa-dispatcher.service
index e6c1ce2..7faf4a3 100644
--- a/client/tools/osad/osa-dispatcher.service
+++ b/client/tools/osad/osa-dispatcher.service
@@ -3,9 +3,11 @@ Description=OSA Dispatcher daemon
After=syslog.target network.target
[Service]
+Type=forking
EnvironmentFile=-/etc/sysconfig/osa-dispatcher
PIDFile=/var/run/osa-dispatcher.pid
ExecStart=/usr/sbin/osa-dispatcher --pid-file /var/run/osa-dispatcher.pid
+ExecStartPre=/bin/rm -f /var/run/osa-dispatcher.pid
[Install]
WantedBy=multi-user.target
Show replies by date