rpms/boinc-client/F-7 boinc-client-init-d, 1.1, 1.2 boinc-client.spec, 1.3, 1.4
Miloš Jakubíček (mjakubicek)
fedora-extras-commits at redhat.com
Mon Apr 14 09:59:46 UTC 2008
Author: mjakubicek
Update of /cvs/pkgs/rpms/boinc-client/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv9971
Modified Files:
boinc-client-init-d boinc-client.spec
Log Message:
- Fixed running the boinc daemon as boinc user instead of root, file
permissions changed accordingly.
Index: boinc-client-init-d
===================================================================
RCS file: /cvs/pkgs/rpms/boinc-client/F-7/boinc-client-init-d,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- boinc-client-init-d 25 Mar 2008 20:27:50 -0000 1.1
+++ boinc-client-init-d 14 Apr 2008 09:59:10 -0000 1.2
@@ -73,7 +73,6 @@
#BOINCOPTS="--allow_remote_gui_rpc"
BOINCOPTS="--daemon"
-
# Subsys lock file ...
# If there is the subsys directory, then use it ...
@@ -170,7 +169,7 @@
fi
echo -n "Starting BOINC client as a daemon: "
- daemon "$BOINCEXE $BOINCOPTS" >>$LOGFILE 2>>$ERRORLOG &
+ daemon --user $BOINCUSER "$BOINCEXE $BOINCOPTS" >>$LOGFILE 2>>$ERRORLOG &
sleep 1
PID=`pidof -s -x -o $$ -o $PPID -o %PPID $BOINCEXE`
if [ $PID ]; then
Index: boinc-client.spec
===================================================================
RCS file: /cvs/pkgs/rpms/boinc-client/F-7/boinc-client.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- boinc-client.spec 8 Apr 2008 11:45:04 -0000 1.3
+++ boinc-client.spec 14 Apr 2008 09:59:10 -0000 1.4
@@ -4,7 +4,7 @@
Summary: The BOINC client core
Name: boinc-client
Version: 5.10.45
-Release: 6.%{snap}svn%{?dist}
+Release: 7.%{snap}svn%{?dist}
License: LGPLv2+
Group: Applications/Engineering
URL: http://boinc.berkeley.edu/
@@ -190,6 +190,11 @@
%post
/sbin/chkconfig --add boinc-client
+#correct wrong owner and group on files under /var/lib/boinc and log files
+#caused by bug fixed in 5.10.45-7
+chown --silent boinc:boinc %{_localstatedir}/log/boinc* \
+%{_localstatedir}/lib/boinc/*
+
%preun
if [ $1 -eq 0 ]; then #if uninstalling, not only updating
/sbin/service boinc-client stop
@@ -221,7 +226,6 @@
%doc checkin_notes_2004
%doc checkin_notes_2003
%doc checkin_notes_2002
-%{_localstatedir}/lib/boinc
%{_bindir}/boinc
%{_bindir}/boinc_client
%{_bindir}/boinc_cmd
@@ -232,6 +236,8 @@
%{_mandir}/man1/boinc_client.1.gz
%{_mandir}/man1/boinc_cmd.1.gz
%{_mandir}/man1/boincmgr.1.gz
+%defattr(-,boinc,boinc,-)
+%{_localstatedir}/lib/boinc/
%files -n boinc-manager -f BOINC-Manager.lang
%defattr(-,root,root,-)
@@ -257,6 +263,10 @@
%changelog
+* Mon Apr 14 2008 Milos Jakubicek <xjakub at fi.muni.cz> - 5.10.45-7.20080315svn
+- Fixed running the boinc daemon as boinc user instead of root, file
+ permissions changed accordingly.
+
* Mon Apr 07 2008 Milos Jakubicek <xjakub at fi.muni.cz> - 5.10.45-6.20080315svn
- Using --with-boinc-platform=i686-pc-linux-gnu on i386 instead of --build,
--host, --target
More information about the fedora-extras-commits
mailing list